Skip to content

Commit 8a93f95

Browse files
committed
rebase -i: remind that the lines are top-to-bottom
Nelson Benitez Leon opened a discussion with a patch with this in the note: Hi, I was using git rebase -i for some time now and never occured to me I could reorder the commit lines to affect the order the commits are applied, learnt that recently from a git tutorial. Nelson's patch was to stress the fact that the lines in the insn sheet can be re-ordered in a much more verbose way. Let's add a one-liner reminder and also remind that the lines in the insn sheet is read from top to bottom, unlike the "git log" output. Discussion-triggered-by: Nelson Benitez Leon Signed-off-by: Junio C Hamano <[email protected]>
1 parent a99c5e5 commit 8a93f95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-rebase--interactive.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ cat >> "$todo" << EOF
846846
# f, fixup = like "squash", but discard this commit's log message
847847
# x, exec = run command (the rest of the line) using shell
848848
#
849+
# These lines can be re-ordered; they are executed from top to bottom.
850+
#
849851
# If you remove a line here THAT COMMIT WILL BE LOST.
850852
# However, if you remove everything, the rebase will be aborted.
851853
#

0 commit comments

Comments
 (0)