windows本地已经安装git,并配置成功。
1.vscode填写git配置
在搜索框中搜索
terminal.integrated.automation profile:windows
在setting.json编辑git.exe和bash.exe。
{
"git.path": "E:/codeApp/Git/bin/git.exe",
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path": "E:/codeApp/Git/bin/bash.exe",
"args": [],
"icon": "terminal-bash"
},
},
"terminal.integrated.defaultProfile.windows": "Git-Bash",
"git.autofetch": true,
}
2. 打开git命令行界面
使用ctrl+~可以快速打开git命令行界面