![](/img/trans.png)
[英]Git commands in Visual Studio Code Terminal are not working, yet they work on the cmd prompt
[英]Git command not working in VS Code terminal/cmd/powershell
我正确安装了 GIT,但是 vs code 命令提示符响应:
“Git 未被识别为内部或外部命令、可运行程序或批处理文件。”
添加后:
"git.enabled": true,
"git.path": "C:\\'Program Files'\\Git\\mingw64\\bin\\git.exe",
它仍然无法正常工作。 即使在关闭和打开 vs 代码之后。
如果 vs code 没有关闭您的内部命令提示符并再次使用它重新打开,则您必须手动关闭 cmd。
您是否尝试过在.json
文件中使用转义双引号,而不是添加路径 a all 中不存在的单引号?
"git.path": "\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.