Back to all tips

Git Pro Tips

Edit a Non-Recent Commit

🗓️ Published: 4/15/2026 Originally on X: 6/25/2022
Edit a Non-Recent Commit

To edit an older commit, use interactive rebase and change the action for that commit to edit.

Git stops on that commit so you can amend it. When you are done, continue with:

git rebase --continue

Discuss this tip on