Amend a specific commit
Currently it's only possible to amend the latest commit. It would be nice to have the option to amend the second-latest commit or any other commit.
Currently to do this I have to do the following steps:
- Commit my changes (with bogus commit message)
- Start interactive rebase from the parent of the commit I want to amend
- Move the new commit down and squash it into the commit I want to amend (this automatically adds the commit message of the squashed commit to the description of the amended commit, which I don't want)
- Finish rebase
- Edit description of amended commit to remove the bogus commit message (which causes another rebase)
It would be nice if this process could be automated. For example as a right-click option on a commit: "Amend with staged changes" (perhaps followed by a confirmation dialog saying how many commits will have to be rebased).
Comments: 1
-
29 May, '23
UnShameThis is such a common annoyance for me, I'm surprised this suggestion has been buried so deep for so long.