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

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