vscode configure Git

step:

  1. Download the Git client
  2. Configure environment variables
  3. Set the association between vscode and Git
  4. reboot

step one:

该网址,下载即可。 https://git-scm.com/downloads

Step 2:

计算机 > 属性(右击)> 高级系统设置 > 环境变量 >  系统变量下的Path > 编辑 , 然后新建添加你的Git下的cmd路径,然后确定即可。
如:D:\Program Files\Git\cmd 

Step 3:

打开vscode,然后 文件 > 首选项 > 设置 ,然后添加 "git.path"键,值为Git目录下的cmd下的git.exe文件。
如: "git.path":"D:/Program Files/Git/cmd/git.exe"

Step 4:

重启

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325902470&siteId=291194637