开发者

Is there a way to do a "git commit --amend" that automatically uses the old commit message instead of prompting us to edit the old one? [duplicate]

开发者 https://www.devze.com 2023-02-28 19:04 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Can I skip the commit message step when I run git comm开发者_开发问答it --amend?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Can I skip the commit message step when I run git comm开发者_开发问答it --amend?

Is there a way to do a git commit --amend that automatically uses the old commit message instead of prompting us to edit the old one?

I know I just need to type in <ESC>:q but if there was some other argument I'd pass in the git commit, I'd prefer it that way.

Thanks!


Sure:

git commit --amend -C HEAD
0

精彩评论

暂无评论...
验证码 换一张
取 消