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

git.exe的路径是什么?


当前回答

试试C:\Program Files\Git\bin.我已经能够使用位于那里的git.exe来设置我的PyCharm存储库。

其他回答

在windows 8中,我发现它的路径如下:

C:\Program Files (x86)\Git\bin\git.exe

我已经从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文件夹。

如果你可以使用git命令,它应该在你的路径? 因此,这应该工作假设Linux或Linux类似的操作系统

which git

其他也假设Linux类似的操作系统

cd /
find . -name "*git*"

如果在windows上,告诉我你用的是什么版本,我会帮助你。windows默认路径为 C:\Program Files (x86)\Git.

可执行文件的名称不是git。Exeon所有系统。

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

试试C:\Program Files\Git\bin.我已经能够使用位于那里的git.exe来设置我的PyCharm存储库。