即使在系统变量中设置路径后,也无法在命令提示符中执行git命令

时间:2019-12-10 06:10:13

标签: windows git

  

D:\ Git \ bin \ git.exe
D:\ Git \ cmd \ git.exe

执行“ where git”命令后,在git bash中可见的路径

  

D:\ Git \ mingw64 \ bin \ git.exe

enter image description here

1 个答案:

答案 0 :(得分:1)

路径应为D:\Git\bin,而不是D:\Git\bin\git.exe

这会将D:\bin目录内的所有程序添加到路径。

相关问题