Re: reverting vs resetting
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:48:11
Junio C Hamano [off-list ref] writes:
git branch andy_failed_experiment
git reset --hard HEAD~50
;# and perhaps revert Bob's change here as wellSo would I, and to complement Junio's answer: keeping a failure followed by a repair means this experiment will appear more or less forever in the output of "git log", "git blame", will break "git bisect" on that part of history, and so on. Putting it on a separate branch avoids this, and keeps it in a safe place to show newcommers: "see, here's what you should not do" ;-). -- Matthieu Moy http://www-verimag.imag.fr/~moy/