vscode 报错 未找到Git。请安装Git,或在"git.path" 设置中配置

问题:

更新新版本vscode 1.19.1,出现了如下报错


原因:

 Visual Studio Code更新时,git.path 被设置了null


解决方案:
1.打开用户设置:文件-》首选项-》设置
2.在用户设置页面按下图修改用户配置


3.重启Visual Studio Code,不再提示未找到git的警告,问题解决。



注意:

不要使用 windows 的路径风格,例如  C:\\mysoft\\Git\\Git\\bin\\git.exe。

要使用   linux style  例如  C:/mysoft/Git/Git/bin/git.exe。

猜你喜欢

转载自blog.csdn.net/qq_25646191/article/details/78919335