当我输入 git commit 命令提交我的文件时,我收到以下错误消息:
Microsoft Visual Studio: Microsoft: command not found
error: there was a problem with the core editor 'Microsoft Visual Studio'.
Please supply the message using either -m or -F option.
最佳答案
查你 git config core.editor
值(value)。
它可能指的是一个带有空格的路径,没有引号。
注册该编辑器路径时,请确保使用简单的引号:
(以及所有注册的命令表达式周围的双引号。
和 ' /
' 而不是 ' \
' 为路径分隔符)
git config core.editor "'C:/path/with spaces/xxx.exe' -<someoptions>"
那是什么时候做的using, for instance, Visual Studio Code as a git editor .
关于Git 提交失败 : "Please supply the message using either -m or -F option.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32547405/