【发布时间】:2018-03-01 16:56:06
【问题描述】:
我在使用 atom 文本编辑器提交文件时遇到问题
我在 Git Bash
中使用过git config --global core.editor "atom --wait"
但是当提交这样的文件时:
git commit
出现此错误:
hint: Waiting for your editor to close the file... 'C:\Users\SALAH' is not recognized as an internal or external command,
operable program or batch file.
Aborting commit due to empty commit message.
但是当使用 sublime text 作为我的文本编辑器时,如下所示:
git config --global core.editor "'C:\Program Files\Sublime Text 3\sublime_text.exe' -n -w"
承诺完美运作
这是 atom 或 PATH 的问题...
任何建议我将不胜感激
【问题讨论】:
标签: git terminal sublimetext3 atom-editor