vscode git-bash设置问题

在vscode终端使用git 命令显示不是内部或外部的命令

  1 问题描述
    在vscode终端中使用git 相关命令显示不是内部或外部的命令
    且本地path 路径配置正确
    git bash 使用相关命令可用, 在vscode环境下不可用

  2 解决方法
    1- 在vscode设置中 Ctrl+shift+p 首选项打开默认json配置
    2- Git Bash 配置中更改默认git地址(我的git地址是自定义)
    3- 重启 vscode。 测试后即可使用
posted @ 2023-05-25 18:12  MattMaster  阅读(129)  评论(0)    收藏  举报