Search code examples
gitgithubgit-commitgithub-for-windowsgit-amend

Edit incorrect commit message in GitHub for Windows


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?


Solution

  • 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^.

    enter image description here