File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -207,14 +207,15 @@ variable (see linkgit:git-config[1]).
207
207
without changing its commit message.
208
208
209
209
--amend::
210
- Used to amend the tip of the current branch. Prepare the tree
211
- object you would want to replace the latest commit as usual
212
- (this includes the usual -i/-o and explicit paths), and the
213
- commit log editor is seeded with the commit message from the
214
- tip of the current branch. The commit you create replaces the
215
- current tip -- if it was a merge, it will have the parents of
216
- the current tip as parents -- so the current top commit is
217
- discarded.
210
+ Replace the tip of the current branch by creating a new
211
+ commit. The recorded tree is prepared as usual (including
212
+ the effect of the `-i` and `-o` options and explicit
213
+ pathspec), and the message from the original commit is used
214
+ as the starting point, instead of an empty message, when no
215
+ other message is specified from the command line via options
216
+ such as `-m`, `-F`, `-c`, etc. The new commit has the same
217
+ parents and author as the current one (the `--reset-author`
218
+ option can countermand this).
218
219
+
219
220
--
220
221
It is a rough equivalent for:
You can’t perform that action at this time.
0 commit comments