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
The Amend commit option does not show up for me. Instead since we are using Pycharm anyway I just open up the terminal tab within Pycharm and just fire the command you have already mentioned in your question :D