Aborting commit due to empty commit message

后端 未结 20 2006
[愿得一人]
[愿得一人] 2020-12-04 09:45

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 g

20条回答
  •  醉梦人生
    2020-12-04 10:05

    I was having this problem. I just installed 1.8.0 earlier, and I found I had to modify the above slightly. I'm very much new at all of this, but essentially it seems that, when committing, it'll use content.editor, not core.editor, at least if you have something set for content.editor.

    So, it was

    git config --global content.editor "pico -w"
    

    that finally let me commit! Obviously, of course, use whatever editor you use.

    Hope this helps somebody someday!

提交回复
热议问题