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

相关推荐
HealthScience14 小时前
vscode怎么连接远程服务器/无密码(使用秘钥)登录
服务器·ide·vscode
i***279514 小时前
【golang学习之旅】使用VScode安装配置Go开发环境
vscode·学习·golang
T***160715 小时前
Git增强现实案例
git·ar
Arva .17 小时前
git常用
git
久莜17 小时前
【Git】使用教程
git
果子火火17 小时前
Git clone couldn‘t connect to server
git
rainbow_lucky010617 小时前
VSCode从专家到小白
ide·vscode·编辑器
skywalk816317 小时前
github创建项目后,应该用main还是master作为默认branch?
git·github
正经教主18 小时前
【Git】Git07:GitHub desktop使用教程【可选】
git·github
顾安r18 小时前
11.22 脚本 手机termux项目分析(bash)
前端·python·stm32·flask·bash