aboutsummaryrefslogtreecommitdiffstats
path: root/using-git.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-22 11:39:53 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-22 11:39:53 +0200
commit291b0c30f4a7b079a15aa3ef6030673b924905a9 (patch)
treef046111bf7ce11a0b6120e8be95e328598665192 /using-git.texinfo
parentdo not write about reset in this chapter (diff)
downloadusing-git-291b0c30f4a7b079a15aa3ef6030673b924905a9.tar.gz
using-git-291b0c30f4a7b079a15aa3ef6030673b924905a9.tar.bz2
using-git-291b0c30f4a7b079a15aa3ef6030673b924905a9.tar.xz
amending commits
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'using-git.texinfo')
-rw-r--r--using-git.texinfo24
1 files changed, 23 insertions, 1 deletions
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