1)把git加到环境变量中

  1. 右键点击【此电脑】,选择属性,选择高级系统设置,打开系统属性窗口;

    给idea中terminal添加git
  2.  

    点击【环境变量】;

    给idea中terminal添加git
  3.  

    点击系统变量下的【path】;

    给idea中terminal添加git
  4.  

    然后新建变量,在框内输入git路径,我的是E:\Git\bin;

    给idea中terminal添加git
    给idea中terminal添加git
    给idea中terminal添加git
  5.  

    然后点击【确定】;

    给idea中terminal添加git
  6.  

    最后,win+r快捷键输出cmd回车,我们打开cmd窗口,输入sh,即可激活;

    给idea中terminal添加git
     
     
     
    2)在idea中配置git,注意最后设置shell path是git软件bin目录下的sh.exe
     
    给idea中terminal添加git

     

     

     

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-04-06
猜你喜欢
  • 2021-09-04
  • 2021-04-30
  • 2022-12-23
  • 2021-07-05
  • 2022-01-18
  • 2021-07-13
  • 2021-08-16
相关资源
相似解决方案