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

git.exe的路径是什么?


当前回答

如果你已经安装了基于powershell的git,你可以使用Get-Command对象来查找git:

Get-Command git.exe | Select-Object -ExpandProperty Definition

其他回答

当地C:\Users\ \ AppData \ \ GitHub \ PortableGit_ \ cmd \ git.exe

这个地点对我来说很合适。我也无法使用shell中的git。将上面的位置设置为路径解决了这个问题。

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

我正在使用GitHub Desktop 1.0.13,我想将git.exe添加到我的Intellij环境中。 我在C:\Users\Adam\AppData\Local\GitHubDesktop\app-1.0.13\resources\app\git\mingw64\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文件夹。

如果你已经安装了基于powershell的git,你可以使用Get-Command对象来查找git:

Get-Command git.exe | Select-Object -ExpandProperty Definition