我有PyCharm,我正在寻找git.exe来设置它与我的repo。
git.exe的路径是什么?
我有PyCharm,我正在寻找git.exe来设置它与我的repo。
git.exe的路径是什么?
当前回答
Windows 10上的C:\Users\Paul\AppData\Local\GitHub\PortableGit_624c8416ee51e205b3f892d1d904e06e6f3c57c8\mingw32\bin\git.exe
其他回答
如果你可以使用git命令,它应该在你的路径? 因此,这应该工作假设Linux或Linux类似的操作系统
which git
其他也假设Linux类似的操作系统
cd /
find . -name "*git*"
如果在windows上,告诉我你用的是什么版本,我会帮助你。windows默认路径为 C:\Program Files (x86)\Git.
可执行文件的名称不是git。Exeon所有系统。
Windows 10上的C:\Users\Paul\AppData\Local\GitHub\PortableGit_624c8416ee51e205b3f892d1d904e06e6f3c57c8\mingw32\bin\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。将上面的位置设置为路径解决了这个问题。
如果你安装了Visual Studio 2022, git.exe位于这里:
C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin