Originally published on the old depletionmode / 2of1 blog (archived copy).
Undo last commit:
git reset --soft HEAD^Commit with previous commit message:
git commit <-a OR file(s)> -c ORIG_HEADUndo all commits:
git reset master^02 August 2010
Originally published on the old depletionmode / 2of1 blog (archived copy).
Undo last commit:
git reset --soft HEAD^Commit with previous commit message:
git commit <-a OR file(s)> -c ORIG_HEADUndo all commits:
git reset master^→ end of entry