As a newbie git user, when I try to commit my work with
git commit -a -v
and I enter a commit message in my editor, I close the file, and get this error:
Aborting commit due to empty commit message.
I have read nearly all the topics addressing to this issue, changed editors, basically tried everything but nothing helps. What should I do?
One thing I noticed, while trying the whole process with notepad++, the file couldn't be saved.
A possible workaround is this:
git commit -am "SomeComment"
But by doing so I feel I am kind of nullifying the purpose of using git. I want to properly document my changes.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…