Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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]

Possible Duplicate:
Can I skip the commit message step when I run git commit --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!

like image 624
devoured elysium Avatar asked Dec 05 '22 22:12

devoured elysium


1 Answers

Sure:

git commit --amend -C HEAD
like image 113
Brian Campbell Avatar answered Mar 10 '23 09:03

Brian Campbell