VSC添加git bash作为默认终端的settings.json添加
settings.json
{ "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe", }