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

相关推荐
hallo1284 小时前
vscode环境迁移
ide·vscode·编辑器
家有狸花4 小时前
VSCODE驯服日记(三):配置C++环境
c++·ide·vscode
yufei-coder7 小时前
掌握 C# 中的 LINQ(语言集成查询)
windows·vscode·c#·visual studio
怪我冷i9 小时前
使用vscode调试wails项目(golang桌面GUI)
vscode·golang
惜.己17 小时前
javaScript基础(8个案例+代码+效果图)
开发语言·前端·javascript·vscode·css3·html5
int WINGsssss18 小时前
Git使用
git
醉颜凉18 小时前
银河麒麟桌面操作系统修改默认Shell为Bash
运维·服务器·开发语言·bash·kylin·国产化·银河麒麟操作系统
用户07605303543820 小时前
Git Revert:安全移除错误提交的方式
git
satan–021 小时前
R语言的下载、安装及环境配置(Rstudio&VSCode)
开发语言·windows·vscode·r语言
Good_Starry1 天前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github