在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",

相关推荐
_君莫笑5 小时前
大厂Git使用规范
git
无心水12 小时前
【Hermes:安全、权限与生产环境】39、智能体也会犯错?Hermes 纠错、回滚与遗忘机制全指南 —— 让 AI 的错误像 Git 一样可逆可控
人工智能·git·安全·mcp协议·openclaw·hermes·honcho
freewlt13 小时前
Cline v3.82.0 发布:VS Code AI编程助手迎来重大更新
vscode·cline
HealthScience15 小时前
vscode使用Excel插件导致codex插件无法粘贴图片
服务器·vscode·excel
霜落花轻扬16 小时前
VSCode全局搜索内容不全
ide·vscode·编辑器
南境十里·墨染春水16 小时前
linux学习进展 git详解
linux·git·学习
zhangfeng113317 小时前
CodeBuddy ai对话框上面的git docs terminal Rulds 干嘛用的,以thinkphp fastadmin 为例,插件市场
人工智能·git·编程
OYangxf18 小时前
Git Conflict Resolution
大数据·git·elasticsearch
高斯林.神犇18 小时前
Git全套流程
git
棒棒的唐19 小时前
配置 VSCode 的 PHP Intelephense 插件,去掉因php版本不同导至的红色波浪线误判
ide·vscode·php