undo latest commit
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 10 Apr 2017 14:29:04 +0300
changeset 2124 3afe57643e44
parent 2123 f98c2b2e6c07
child 2125 754abf10c819
undo latest commit
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'
 =======================
 ::