You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/07-git-tools/sections/rewriting-history.asc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ $ git commit --amend --no-edit
56
56
==== Changing Multiple Commit Messages
57
57
58
58
To modify a commit that is farther back in your history, you must move to more complex tools.
59
-
Git doesn't have a modify-history tool, but you can use the rebase tool to rebase a series of commits onto the HEAD they were originally based on instead of moving them to another one.
59
+
Git doesn't have a modify-history tool, but you can use the rebase tool to rebase a series of commits onto the HEAD that they were originally based on instead of moving them to another one.
60
60
With the interactive rebase tool, you can then stop after each commit you want to modify and change the message, add files, or do whatever you wish.
61
61
You can run rebase interactively by adding the `-i` option to `git rebase`.
62
62
You must indicate how far back you want to rewrite commits by telling the command which commit to rebase onto.
0 commit comments