How to edit a commit message in PyCharm?

前端 未结 7 788
刺人心
刺人心 2021-02-07 02:40

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

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 03:09

    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.

提交回复
热议问题