From time to time I find myself commit-amending using the same message.
Typically, I do:
git commit --amend
.There is anyway to tell git that I don't want to change the commit message (skipping the step of opening my text editor and saving the message)? Like:
I know I can avoid git firing up my text editor by doing git commit --amend -m "<message>"
. But this way I would have to retype the message.
Try git commit --amend --no-edit
.