# HG changeset patch
# User Oleksandr Gavenko <gavenkoa@gmail.com>
# Date 1488983484 -7200
# Node ID f92d8941f4a80003a8277a3e3df6814968995b83
# Parent  0263a79eeb3be7eaa4ff8cb4cd73df5891008939
Git amend.

diff -r 0263a79eeb3b -r f92d8941f4a8 git.rst
--- a/git.rst	Wed Mar 08 16:17:56 2017 +0200
+++ b/git.rst	Wed Mar 08 16:31:24 2017 +0200
@@ -219,13 +219,19 @@
   [alias]
   glog = log --all --graph
 
-Git analog of 'hg rollback'.
-============================
+Git analog of 'hg rollback'
+===========================
 
 To edit commit message of last commit::
 
   $ git commit --amend -m "$MSG"
 
+To integrate changes into last commit (``-a`` to avoid antecedent ``git add ...``,
+``--no-edit`` if you don't like to change commit message, otherwise external
+editor is opened)::
+
+  $ git commit -a --amend --no-edit
+
 To edit messages of old commits starting from ``$REV``::
 
   $ git rebase -i $REV