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

后端 未结 3 1819
臣服心动
臣服心动 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:25

    Would git commit --amend -C HEAD work?

    I don't have a git repository convenient to test on, but in the help for commit:

    -C , --reuse-message=

    Take an existing commit object, and reuse the log message and the authorship information (including the timestamp) when creating the commit.

提交回复
热议问题