Using IntelliJ to amend git commit message

前端 未结 9 1126
我寻月下人不归
我寻月下人不归 2020-12-02 11:03

Can one amend a git commit message using IntelliJ, or should one resort to command line?

How can this be done please?

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 11:23

    Amend is supported: invoke "Commit Changes" and select the checkbox "Amend commit" in the Commit Dialog. Then press "Commit" button, and the commit will be amended to the previous one.

    However, the support is limited:

    • you can't see the details of the commit being amended,
    • if you don't have any uncommitted changes (for example, you just want to change the message of the previous commit without adding more changes to it), you won't be able to invoke "Commit".

提交回复
热议问题