git-undo - Remove latest commits
git-undo [<commitcount>] [--hard|-h]
Removes the latest commits.
<commitcount>
Number of commits to remove. Defaults to 1, thus remove the latest commit.
--hard or -h
This option wipes your commit(s), so that your changes cannot be recovered. Use with care.
Removes the latest commit.
$ git undo
Remove the latest 3 commits:
$ git undo 3
Written by Kenneth Reitz <me@kennethreitz.com>
<http://github.com/visionmedia/git-extras/issues>
<http://github.com/visionmedia/git-extras>