由于空提交消息而中止提交。与原子的git bash无法正常工作

时间:2018-03-03 14:39:15

标签: atom-editor

为什么我能看到这个?

Aborting commit due to empty commit message.

2 个答案:

答案 0 :(得分:1)

我认为你的git配置存在一些问题(参见core.editor),但你可以这样做:

您可以通过将其放在-m:

之后添加提交消息
git commit -a -m"This is my commit message"

或者您可以通过传递--allow-empty-message来忽略该消息 e.g。

git commit -a --allow-empty-message

祝你好运

答案 1 :(得分:0)

我遇到了同样的问题,我尝试了这个并解决了问题:

git config --global core.editor“C:/Users/USERNAME/AppData/Local/atom/bin/atom.cmd -w”

用您的电脑中的USERNAME替换USERNAME

https://help.github.com/articles/associating-text-editors-with-git/

相关问题