当我键入git commit
时应打开原子。但事实并非如此。
对于命令提示符下的配置,我键入:
config --global core.editor "atom --wait"
输入时:
git commit
它说:
hint: waiting for your editor to close the file .......
error: there was a problem with the editor "atom --wait"
Please supply the message using either -m or -F option.
正如解释here,应检查git config core.editor
值。它可能指的是其中带有空格的路径,不带引号。
注册该编辑器路径时,请确保使用简单的引号:(并在所有已注册的命令表达式两边加上双引号。然后使用'/'
代替路径分隔符'\'
)
git config core.editor "'C:/path/with spaces/xxx.exe' -<someoptions>"