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).

Under consideration Suggested by: Daniel Upvoted: 31 Aug Comments: 0

Add a comment

0 / 1,000

* Your name will be publicly visible

* Your email will be visible only to moderators