VScode里面配置git终端

109 阅读1分钟

vscode里面的settings.json里面配置:

`"terminal.integrated.profiles.windows": {

    "PowerShell":{
        "source": "PowerShell",
        "icon": "terminal-powershell"
    },
    "Command Prompt":{
        "path": [
            "${env:windir}\\Sysnative\\cmd.exe",
            "${env:windir}\\System32\\cmd.exe"
        ],
        "args": [],
        "icon": "terminal-cmd"
    },
    "Git Bash":{
        "source": "Git Bash"
    },
    "bush":{
        "path": "D:\\前端软件工具代码\\Git\\bin\\bash.exe",//你的git地址
        "args": []
    }
}`

在终端处选择bush即可:

image.png