# HG changeset patch # User Oleksandr Gavenko # Date 1419720575 -7200 # Node ID c77807176b360019145cf96d6195999f1e6c8316 # Parent a48c3c61d0f94c6eec7b671e2040269105540f57 Git analog of 'hg rollback' diff -r a48c3c61d0f9 -r c77807176b36 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. ============================