Sublime Forum

Amend commit

#1

Is there a way to make a new commit that amends the previous commit (git commit --amend)?

0 Likes

#2

have some fun with the little triangle :slight_smile:

0 Likes

#3

This time it’s not quite what I was looking for :wink:

I would like to amend the commit and get the commit message from before and maybe edit it. Something like this:

0 Likes

#4

Staging files and using the Amend Previous Commit option will update the commit with the new files but keep the same message.

If you enter a new message into the commit message portion, that message will be used (along with the staged content) when you pick the option, which amends the commit and also alters the message.

If you want to alter the message based on what it previously was (e.g. to tweak the wording or add something extra), currently the only ways to do that are to either copy the original commit message and paste it into the panel when you do the amend, or use the amend to update the file and then edit the message on the commit separately by using the Edit commit message command.

0 Likes

#5

Right click on the commit and you will see a plethora of options!

2019-04-17%2023_24_53-

0 Likes