Until a minute ago, I had a Git repository in which the last commit had an empty commit message. I filled it out by crushing the new commit on it with git rebase -i (I was planning to change the contents anyway), but I still would like to know if there is a way to fill in the empty commit messages.
I tried
 git commit  
but it didnβt work, I tried
 git rebase -i HEAD^ 
and a reword . Both attempts led to what Git said
 fatal: commit has empty message 
and go out.
EDIT : to clarify what ended up
 # change some stuff git commit git rebase -i HEAD~2  
but it seems to be a hack.
source share