I've managed to muck up a commit message bad enough, that when I read it back, even I can't work out what is says!
This commit hasn't been pushed and I know that the message can be changed with:
git commit --amend -m "New commit message"
(thanks to this post)
However, I am using the GitHub for Windows GUI. So is there any way for me to change the commit message without jumping into powershell?
For those using github for windows version 2.3 and upper, the rollback command has been removed, so click on the cog wheel then click on "Undo most recent commit".
Note that this will undo only the last commit if you committed more than once so it is not possible to change the message on previous commits.
Aside from rolling back the entire commit and recreating it this is not possible in the UI. Rolling back performs an equivalent of git reset HEAD^
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With