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' ======================= ::