From 291b0c30f4a7b079a15aa3ef6030673b924905a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 22 Aug 2013 11:39:53 +0200 Subject: amending commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- using-git.texinfo | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'using-git.texinfo') diff --git a/using-git.texinfo b/using-git.texinfo index cc53efd..0407f0f 100644 --- a/using-git.texinfo +++ b/using-git.texinfo @@ -917,6 +917,8 @@ what you are doing. @menu * Naïve reset:: * Using the stash:: +* Commit amendment:: +* Bisection:: @end menu @@ -979,7 +981,27 @@ Discard all stored stash objects. @end table -@c TODO git bisect + +@node Commit amendment +@section Commit amendment + +If you have not yet pushed your latest +commit you can amend it. If you have +pushed it, you cannot amend it cause +the commit ID changes because it is +SHA-1 hashsum of all imformation. + +To amend your commit run +@command{git commit --amend}. +It will launch your text editor so +you can edit the commit message, +additionally all staged changes are +included in the amendment. + + + +@node Bisection +@section Bisection -- cgit v1.2.3-70-g09d2