我有PyCharm,我正在寻找git.exe来设置它与我的repo。
git.exe的路径是什么?
我有PyCharm,我正在寻找git.exe来设置它与我的repo。
git.exe的路径是什么?
当前回答
如果你使用的是Git For Windows,那么它位于
C:\Program Files\Git\mingw64\libexec\git-core
记住Git For Windows提供了Git CMD,这是一个已经设置了PATH的命令提示符。Git CMD可作为快捷方式
Start Menu > Programs > Git
还有其他选择。
其他回答
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
在GitHub 2.5.3.0的Windows 7中,我在C:\Users(user)\AppData\Local\GitHub\PortableGit_(numbers)\mingw32\bin\git.exe中找到了它
感谢dir /s git.exe
在浏览了所有答案之后,虽然没有找到路径。 windows 10最新版本的githubdesktop.exe在这个目录下:
C:\ProgramData\<User>\GitHubDesktop\app-1.0.13\GitHubDesktop.exe
当地C:\Users\ \ AppData \ \ GitHub \ PortableGit_ \ cmd \ git.exe
这个地点对我来说很合适。我也无法使用shell中的git。将上面的位置设置为路径解决了这个问题。
如果你已经安装了基于powershell的git,你可以使用Get-Command对象来查找git:
Get-Command git.exe | Select-Object -ExpandProperty Definition