Is there a way to edit the comments entered when committing to GIT in the GIT Panel? Is that stored in some file somewhere?
I made a mistake on a commit note and need to edit it.
Is there a way to edit the comments entered when committing to GIT in the GIT Panel? Is that stored in some file somewhere?
I made a mistake on a commit note and need to edit it.
I’ve never changed the description of a commit and always assumed I couldn’t. I suspect you would need to make the change at the repo, if it’s even possible.
It’s not critical in this situation. If I can’t, I can’t. I would just like to if it’s easy enough.
No you can’t change git history and comments once it is committed. It is all written as hard history. You can add new comment in the next commit.
Thanks George, it’s not critical. I just didn’t add all of the information I needed in the comments and wondered if I could edit it. Not a big deal. I can live with it. 
If you have not pushed your change to remote, you can revert your last commit using below command in terminal:
git reset HEAD~
This will undo your last local commit. Then you can commit your files again with correct commit message.
In case you want to copy the last commit message you wrote, use following command in terminal, before above command:
git log
This will list last few commits with their messages. Select text from mouse and right-click to copy.
Press :q to quit log view. Then, you can paste this message and modify in new commit.