git.rst
changeset 1651 c77807176b36
parent 1650 a48c3c61d0f9
child 1714 eed8cfffa44e
--- 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.
 ============================