git commit --amend without asking for message [duplicate] git commit --amend without asking for message [duplicate] git git

git commit --amend without asking for message [duplicate]


Try git commit --amend --no-edit.


This will amend the latest commit, using that same message, in one command:

git commit --amend -C HEAD