# HG changeset patch # User Oleksandr Gavenko # Date 1491823744 -10800 # Node ID 3afe57643e445e2ee10e4124eab63a024f66e0e4 # Parent f98c2b2e6c07d9d7b6b5f2d48581c79e2765f823 undo latest commit diff -r f98c2b2e6c07 -r 3afe57643e44 git.rst --- a/git.rst Thu Apr 06 17:41:10 2017 +0300 +++ b/git.rst Mon Apr 10 14:29:04 2017 +0300 @@ -251,6 +251,10 @@ $ git rebase -i $REV +To undo latest commit:: + + $ git reset HEAD~1 + Git analog of 'hg root' ======================= ::