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

相关推荐
cen__y8 小时前
Linux12(Git01)
linux·运维·服务器·c语言·开发语言·git
bukeyiwanshui11 小时前
20260518 Swift实验
git·swift
qziovv11 小时前
Git 回退场景
大数据·git·elasticsearch
zh_xuan12 小时前
解决VS Code 控制台中文乱码
c++·vscode·乱码
猿儿本无心13 小时前
快速搭建Python项目(Vscode+uv+FastAPI)
vscode·python·uv
来自大山深处的Doge_13 小时前
解决Git提交更新更改时出错: detected dubious ownership in repository at ...
git
嵌入式爱好者hsw16 小时前
Git 部署本地仓库
git
C137的本贾尼17 小时前
Git基本操作(三):版本回退,坐上“时光机”
git
π同学17 小时前
ESP-IDF+vscode开发ESP32第十二讲——event
vscode·esp32·事件循环库event
诗水人间17 小时前
VsCode 中使用Copilot调用Deepseek V4模型
ide·vscode·copilot