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

git.exe的路径是什么?


当前回答

我在

C:\Users\~\AppData\Local\GitHub\PortableGit_<some_identifier>\mingw32\libexec\git-core\

其他回答

在最新版本的windows GH中,似乎再次移动到:

%USERPROFILE%\AppData\Local\GitHubDesktop\app-[gfw-version]\resources\app\git\cmd\git.exe

鉴于它现在有版本的文件夹结构,我认为它将移动每次它自动更新。这使得它不可能放入路径。我认为最好的选择是单独安装git。

Install git first to your window from

https://git-scm.com/download/win

 Select this path while configuring with git to Android studio
    C:\Program Files\Git\cmd\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文件夹。

如果你安装了msysgit,在64位系统上的路径看起来像c:\Program Files (x86)\Git\bin\git.exe,否则就下载并安装它,PyCharm不附带Git客户端。

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

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