解决方案:打开VScode,按 ctrl + , 进入设置,在搜索栏输入git.path,编辑setting.json,在git.path后面输入git安装的路径,然后重启VScode。
ctrl + ,