Skip to content

Commit be569c6

Browse files
committed
fix 'Splitting a Commit' rebase bug
The first commit in the rebase script `f7f3f6d` should be unmodified after the script is complete
1 parent 8512004 commit be569c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/07-git-tools/sections/rewriting-history.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ $ git log -4 --pretty=format:"%h %s"
292292
1c002dd Add cat-file
293293
9b29157 Add blame
294294
35cfb2b Update README formatting
295-
f3cc40e Change my name a bit
295+
f7f3f6d Change my name a bit
296296
----
297297

298-
Once again, this changes the SHA-1s of all the commits in your list, so make sure no commit shows up in that list that you've already pushed to a shared repository.
298+
This changes the SHA-1s of the three most recent commits in your list, so make sure no changed commit shows up in that list that you've already pushed to a shared repository. Notice that the last commit (`f7f3f6d`) in the list is unchanged. Despite this commit being shown in the script, because it was marked as ``pick'' and was applied prior to any rebase changes, Git leaves the commit unmodified.
299299

300300
==== The Nuclear Option: filter-branch
301301

0 commit comments

Comments
 (0)