I know that I can use git commit --amend --file=path-to-my-new-message but this will amend staged changes, too. Of course, I could stash and later apply&drop the stash, but is there a quicker solution to change the HEAD commit message without committing the staged changes (and user interaction)?
I know that I can use git commit –amend –file=path-to-my-new-message but this will amend
Share
According to the man page
git commit --amend --onlywithout any paths specified should do the job, however this doesn’t work for me. As a work-around you may temporarily add a file and remove it again, amending two times: