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
If you haven't pushed the commit, you can reword the commit message pretty easily. Go to the Version Control tab (Alt-9 Win/Linux, Cmd-9 macOS) and click the Log tab in its window.
You'll see a list of commits. In this case you want the first one. Either right-click on it and choose Reword or select it (it's probably already selected) and hit F2 to open the edit window. Edit your commit message, then click Ok.