vscode显示未安装git

一、问题描述:

计算机已经安装了git,且可使用 Git Bash ,但是vscode中显示未安装git

二、原因分析:

尝试在 cmd 中使用 git 命令,结果在 cmd 中无法使用 git,猜测未给 git 配置环境变量

二、解决方法:

未给 git.exe 配置环境变量

1、找到git.exe

在 Git Bash 中使用,找到 git.exe 所在的路径

$ where git 

2、配置环境变量

发布了11 篇原创文章 · 获赞 0 · 访问量 454

猜你喜欢

转载自blog.csdn.net/qq_36323561/article/details/104845063