我有PyCharm,我正在寻找git.exe来设置它与我的repo。
git.exe的路径是什么?
我有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 GH中,似乎再次移动到:
%USERPROFILE%\AppData\Local\GitHubDesktop\app-[gfw-version]\resources\app\git\cmd\git.exe
鉴于它现在有版本的文件夹结构,我认为它将移动每次它自动更新。这使得它不可能放入路径。我认为最好的选择是单独安装git。
我正在OSX工作,看到了这个问题。我发现xcode禁用了git,导致我再次同意T&Cs。我通过:
在终端窗口,在我的项目文件夹:git状态 我收到以下日志条目:同意Xcode/iOS许可证需要管理员权限,请通过sudo以root身份重新运行。 我运行了以下命令:sudo git status 然后我同意了t&c,一切都很顺利
如果你正在使用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默认是一个隐藏文件夹。
在windows 8中,我发现它的路径如下:
C:\Program Files (x86)\Git\bin\git.exe
如果你安装了Visual Studio 2022, git.exe位于这里:
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin