Git analog of 'hg rollback'
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 28 Dec 2014 00:49:35 +0200
changeset 1651 c77807176b36
parent 1650 a48c3c61d0f9
child 1652 a653ec78b1b8
child 1656 bc3de0d9061a
Git analog of 'hg rollback'
git.rst
--- a/git.rst	Sat Dec 27 23:31:28 2014 +0200
+++ b/git.rst	Sun Dec 28 00:49:35 2014 +0200
@@ -174,6 +174,17 @@
   [alias]
   glog = log --all --graph
 
+Git analog of 'hg rollback'.
+============================
+
+To edit commit message of last commit::
+
+  $ git commit --amend -m "$MSG"
+
+To edit messages of old commits starting from ``$REV``::
+
+  $ git rebase -i $REV
+
 Debug git network operation.
 ============================