Ubuntu下git提示:终止提交因为提交说明为空。

这么简单的问题居然搜索了一会儿,现在的网络环境越来越差了。

解决方法:

gedit:
git config --global core.editor "gedit -s"

the paramater "-s " means set the gedit mode to "standalone"

Sublime Text 2
git config --global core.editor "subl -w"

the paramater "-w" means return until the file was closed.

参考:https://www.cnblogs.com/maadiah/archive/2012/02/27/2369931.html

你可能感兴趣的:(git)