In git there is a command git commit --amend to edit your last commit message. I was looking for this type of functionality in pycharm and can\'t seem to find it. I
git commit --amend
There's no need to revert. You can just click on the commit you want to edit, and then press Shift+F6. The edit window will pop up for you.