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

相关推荐
头发那是一根不剩了4 小时前
Git 常用命令
git
x-cmd5 小时前
[x-cmd] x git - Git 命令增强工具
git·终端·命令行·x-cmd
程序员果子6 小时前
Git从零到远程协作:手把手实战指南
git
猫头虎10 小时前
OpenClaw 常用操作命令完整速查手册:终端 CLI 操作指令详解|聊天斜杠指令详情
运维·git·容器·开源·github·aigc·ai编程
dingdingfish12 小时前
Bash学习 - 第10章:Installing Bash
bash·make·shell·install·configure·5.3
Tisfy14 小时前
Windows - VsCode导致Windows凭据过多之一键删除
ide·windows·vscode
小哈里1 天前
【工具】Linux远程开发核心工具,Git命令缩写与SSH常用命令
linux·git·ssh·工具·远程开发
dingdingfish1 天前
Bash学习 - 第8章:Command Line Editing,第3节:Readline Init File
bash·init·bind·readline
迈克桀森1 天前
Git 日常操作全攻略:拉取 / 提交代码 + 高频命令速查
git·github
CCC:CarCrazeCurator1 天前
详解文件与文件夹权限:谁能操作、能做什么
git