我正在努力git commit
,Git正在传达这样的信息:
提示:等待你的编辑器关闭文件.../c/Users/AGT/AppData/Local/Programs/Microsoft VS Code/bin/code:第28行:/Code.exe:没有这样的文件或目录错误:有是编辑'代码 - 等'的问题.请使用-m或-F选项提供消息.
我正在使用或尝试将VS Code作为默认设置,并且在打开或关闭时我收到了相同的消息.通过VS Code或命令完成的提交git commit -m "Initial commit"
工作正常.
我试过更改配置路径:
git config --global core.editor "code --wait"
git config --global core.editor
"'C:\Users\AGT\AppData\Local\Programs\Microsoft VS Code\Code.exe' -n
-w"
以及后面的变体(这些更改时出现错误消息"在寻找匹配时意外的EOF"):根本没有成功.
git状态是:
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: css/app.css
new file: index.html
new file: js/app.js
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题,git commit
通过Git BASH命令可以正常使用Vs …