Editing Commits with Git Interactive Rebasing
Published: 9/1/25
Author: Joshua Randall

I cannot find any other resources that cover this part of git rebasing, but this is important.
Say if you want to edit a specific commit and use git rebase -i
to do so, you may find that the commit that you
select won’t be added in the list of commits to edit.
If we include ~
at the end of the commit, it will allow us to include the commit in the interactive rebasing dialogue.
git rebase -i 54ae342~
This is because ~
represents the range of commits for rebasing. Once we make our modifications, we can follow up with git commit --amend
. To edit/remove a commit like this, force pushing is required. Make sure to talk with everyone involved in the project + review all changes before force pushing.
Here is an example video.