我有PyCharm,我正在寻找git.exe来设置它与我的repo。

git.exe的路径是什么?


当前回答

我很惊讶地看到没有人提到使用——execc -path开关。

git - exec-path C:\Program Files\Git\ mingw64 / libexec / git-core

我希望这能帮助到一些人。

其他回答

C:\Users\<username>\AppData\Local\GitHub\PortableGit_<random hash>\cmd\ Git .exe是我的Git .exe所在的Windows 10, Git版本2.10.0.0

编辑:在GitHubDesktop中,位置更改为这样

C:\Users\<username>\AppData\Local\GitHubDesktop\app-1.0.1\resources\app\git\cmd

或者更简单的方法

%USERPROFILE%\AppData\Local\GitHubDesktop\app-1.0.1\resources\app\git\cmd

Windows 10上的C:\Users\Paul\AppData\Local\GitHub\PortableGit_624c8416ee51e205b3f892d1d904e06e6f3c57c8\mingw32\bin\git.exe

对于那些找不到其他解决方案的人,

我今天刚刚下载了最新的版本,git.exe位于

C:\Users\<user>\AppData\Local\GitHubDesktop\app-1.0.10\resources\app\git\cmd

我已经从https://desktop.github.com下载了存根 从存根安装git后,git.exe存储在以下位置。

C:\Users\**用户名**\AppData\Local\GitHub\PortableGit_*****Some No/characters***\cmd\git.exe

在Windows 10 64位,我觉得exe文件现在存储在cmd文件夹,而不是bin文件夹。

检查这个路径:

C:\Program Files\Git\mingw64\libexec\git-core\git.exe