|
NAMEgit-undo - Remove latest commitsSYNOPSISgit-undo [-s, --soft, -h, --hard] [<commitcount>]DESCRIPTIONRemoves the latest commits.OPTIONS--soft or -sRolls back the commit(s) but leaves the changes in the staging area. --hard or -h This option wipes your commit(s), so that your changes cannot be recovered. Use with care. To avoid being confused with --help, there will be a confirmation when -h is specified. <commitcount> Number of commits to remove. Defaults to 1, thus remove the latest commit. EXAMPLESRemoves the latest commit.
Removes the latest commit, restoring the staging area.
Remove the latest 3 commits:
AUTHORWritten by Kenneth Reitz <me@kennethreitz.com> and Nick Lombard <github@jigsoft.co.za>REPORTING BUGS<https://github.com/tj/git-extras/issues>SEE ALSO<https://github.com/tj/git-extras>
Visit the GSP FreeBSD Man Page Interface. |