How can I prevent the dialog on doing git commit --amend

后端 未结 3 1821
臣服心动
臣服心动 2021-01-20 20:47

There is a dialog that pops up on running:

git commit --amend

That wants me to review the messages. Is there a way to omit this dialog and

3条回答
  •  别那么骄傲
    2021-01-20 21:22

    --no-edit is what you are looking for

    git commit --amend --no-edit
    

    From this article:

    The editor will be populated with the message from the previous commit and including the --no-edit flag will allow you to make the ammendment to your commit without changing its commit message.

提交回复
热议问题