vscode cannot find git path

王林
Release: 2019-12-14 16:22:42
Original
4476 people have browsed it

vscode cannot find git path

首先打开 cmd 查找自己的 git 安装路径。例如:

>where git C:\Program Files\Git\cmd\git.exe
Copy after login

然后打开 vscode 设置,在右侧用户配置中添加如下:

"git.path": "C:\\Program Files\\Git\\cmd\\git.exe"
Copy after login

覆盖默认 git.path 配置,此处后面参数需要和你的 git 安装路径一致,不要填写 git-bash.exe 路径。

注意:vscode 的配置其实就是 json 文件,所以用户配置除了最后一行,其他行配置均需要添加逗号。

相关文章教程推荐:vscode教程

The above is the detailed content of vscode cannot find git path. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!