在vscode中配置git bash终端、git 源码管理

  1. 打开vscode
  2. 文件->首选项->设置,打开设置
  3. 搜索shell windows
  4. 将以下配置添加到vscode中的settings.json中

注意:

  • terminal.integrated.profiles.windows这个配置项是就是添加终端的
  • terminal.integrated.defaultProfile.windows这个是配置默认选项的
  • git bash终端的名字得是'Git-Bash',不能是"Git Bash",否则vscode检测不到;
  • path是git执行路径,path和source不能共存!如果有source,就不要用path;source是git的默认安装路径,如果 Git 不是安装在默认路径,则需要把"source":"Git Bash"替换为"path": Git的安装路径\bin\bash.exe 。注意,不是 git-bash.exe 的路径,是 bash.exe 的路径!
  1. 配置VScode中的git
    在 settings.json 文件中,添加 git 的安装路径

    "git.path": "D:\install\git\Git\bin\git.exe",

相关推荐
wardenlzr1 小时前
VSCode 运行 Live Server 提示「Windows 找不到文件 Chrome」问题全解析
chrome·windows·vscode
程序员more2 小时前
我用 AI,20 分钟做了一个 VSCode 股票摸鱼插件
人工智能·vscode
六bring个六2 小时前
git使用笔记
笔记·git
减瓦4 小时前
告别Postman——用VSCode优雅地发起Http请求
vscode·http·postman
最后冰吻free5 小时前
git 不新增commit修改中间commit对应的文件
git
芳草萋萋鹦鹉洲哦5 小时前
【git】重新生成并添加 SSH Key(Mac)
git·macos·ssh
午安~婉6 小时前
git中http与ssh连接
git·http·ssh
csdn2015_6 小时前
vscode从gitlab拉项目到本地
vscode·gitlab
@Demi6 小时前
前端开发 Git 分支与 Tag 管理规范
大数据·git·elasticsearch
炸膛坦客1 天前
Git 和 GitHub:(七)将本地新建仓库与 GitHub 远程仓库关联起来(SSH)
git·ssh·github