step:
- Download the Git client
- Configure environment variables
- Set the association between vscode and Git
- 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:
重启