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

git.exe的路径是什么?


当前回答

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

其他回答

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

C:\Program Files (x86)\Git\bin\git.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默认是一个隐藏文件夹。

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

which git

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

cd /
find . -name "*git*"

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

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

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

有时可能在:C:\Users\user-name\AppData\Local\Programs\Git\cmd.检查PATH环境变量USER和SYSTEM可以得到这些信息。