Aborting commit due to empty commit message

后端 未结 20 2064
[愿得一人]
[愿得一人] 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:04

    Make sure to sure a capital W.

    git config --global core.editor "open -a 'Sublime Text 2' -W"

    or use the following command to replace an existing one that isn't working properly.

    git config --replace-all core.editor "open -a 'Sublime Text 2' -W"

提交回复
热议问题