VSCode集成git的配置

论坛 期权论坛 脚本     
匿名技术用户   2021-1-7 11:06   140   0

首先计算机要安装了git;

打开settings.json 文件(打开方式: 文件 》 首选项 》 设置),搜索 terminal.integrated.shell.windows,参考如下内容配置集成git。

// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",

   // Command Prompt

    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",

    // PowerShell

    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",

    // Git Bash

    "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\git-cmd.exe",

    "terminal.integrated.shellArgs.windows": [

      "--command=usr/bin/bash.exe",

      "-l",

      "-i"

    ]

    "git.enableSmartCommit": true,

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP