有没有办法做一个"git commit --amend"自动使用旧的提交消息而不是提示我们编辑旧的提交消息?

dev*_*ium 2 git version-control

可能重复:
我可以在运行git commit --amend时跳过提交消息步骤吗?

有没有办法git commit --amend自动使用旧的提交消息而不是提示我们编辑旧的提交消息?

我知道我只需要输入<ESC>:q但是如果有其他参数我会在git提交中传递,我会更喜欢它.

谢谢!

Bri*_*ell 13

当然:

git commit --amend -C HEAD
Run Code Online (Sandbox Code Playgroud)