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

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中找到了它

其他回答

我使用的是Windows 10, Pycharm 2016.1.2,这里是我找到Github.exe的路径:(请注意,粗体部分是变量,你应该用适用的值替换它…)

C: \用户* *萨尔曼·* * \ AppData \ Local的GitHub上的git PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad \ bin \ . exe

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

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

在浏览了所有答案之后,虽然没有找到路径。 windows 10最新版本的githubdesktop.exe在这个目录下:

C:\ProgramData\<User>\GitHubDesktop\app-1.0.13\GitHubDesktop.exe

如果你正在使用GitHub for Windows, git.exe可能不在你的PATH中,但你可能会在以下位置找到它:C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\bin\git.exe

这就是我的情况,在Windows 7 +版本1.0的GitHub Windows。

在Windows 10中,它出现在:

当地C:\Users\ <用户名> \ AppData \ \ GitHub \ PortableGit_ < numbersandletters > \ cmd \ git.exe

(\cmd vs \bin)

来自GitHub Desktop 1.1

UI不同了,Git路径现在在:

C: \ \用户用户< > \ AppData \ Local GitHubDesktop app - < appversion > \资源app \ git \ cmd . exe git。

PS: AppData默认是一个隐藏文件夹。

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

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