Is there a way I can edit the previous commit’s message when I do a commit-amend through Sublime Merge? I only seem to be able to adjust files.
Edit commit message on amend?
Entering a new message would overwrite the old one. At any point you can move to a commit, hit tab until the commit message is selected and press ctrl+enter to start editing. Another ctrl+enter commits the new message. You can edit commit messages via commit context menu as well.
But you are right. Something to get the last commit message back to screen while amending might be a useful feature. Maybe a button or context menu entry?
If you enter a new commit message in the commit pane before you select the Amend
option, the amend will use that message along with updating files. There is currently no automatic method to pull the existing commit message into the panel when you amend (should you want to do that), so you need to copy and paste it manually.
Note that it’s also possible to edit the commit message of arbitrary commits using commands in a couple of different context menus (e.g. Edit Commit > Edit Commit Message
from the context menu if you right click on a commit).
As a shortcut, if you have the cursor in the commit message of an existing commit, Ctrl+Enter will switch that commit directly into commit message edit mode.