Replay the commit and pause so you can modify it.
Section: Interactive Rebase Actions
Stop to amend a commit during rebase
text
text
edit a1b2c3d Commit messageExplanation
Use `edit` when you need to change the commit content, split the commit, or otherwise manipulate it mid-rebase.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Interactive Rebase Actions
Change commit message during rebase
Replay the commit but edit its message.
Squash commit into previous commit
Combine two commits and merge their messages.
Fix up previous commit
Combine commit into previous commit and discard this commit message.
Edit rebase todo during a rebase
Open the rebase todo list while a rebase is in progress.