Well I just searched for git.exe on my Windows.
Many files returned with names like git-something.exe and git-somethingElse.exe.
Out of those I could find a file with the exact name git.exe.
I opened the file and could see cmd with various git commands, which made me decide that it's the correct one.
Pasted the file's path (below) to PyCharm and it worked.
If you're using GitHub for Windows, git.exe may not be in your PATH, but you may find it in a location like: C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\bin\git.exe
That's the situation for me, in Windows 7 + version 1.0 of GitHub for Windows.
On windows if you have git installed through cygwin (open up cygwin and type git --version to check) then the path will most likely be something like C:\cygwin64\bin\git.exe
Here are step by step instructions for you to find out:
Ctrl - Shift - Esc
of open Task Manager.GitHub
, and select "Open file location".There you go!
You can do this with any application, not just GitHub.
I am working on OSX, and saw this issue. I found xcode disabled git, causing me to agree to the T&Cs again. I fixed by:
git status
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
sudo git status
Well I just searched for git.exe on my Windows.
Many files returned with names like
git-something.exe
andgit-somethingElse.exe
.Out of those I could find a file with the exact name git.exe. I opened the file and could see cmd with various git commands, which made me decide that it's the correct one.
Pasted the file's path (below) to PyCharm and it worked.
PS: I installed Git and GitHub through Windows the GitHub's Client Installation.
If you're using GitHub for Windows, git.exe may not be in your PATH, but you may find it in a location like:
C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\bin\git.exe
That's the situation for me, in Windows 7 + version 1.0 of GitHub for Windows.
In Windows 10 it appears to be in:
C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\cmd\git.exe
( \cmd versus \bin)
From GitHub Desktop 1.1
The UI is different and the Git path now is in:
C:\Users\<username>\AppData\Local\GitHubDesktop\app-<appversion>\resources\app\git\cmd\git.exe
PS: AppData is a hidden folder by default.
C:\Users\<username>\AppData\Local\GitHub\PortableGit_<random hash>\cmd\git.exe
is where my git.exe is located on Windows 10, Git version 2.10.0.0Edit: With GitHubDesktop, the location changed to this
or the easier way
On windows if you have git installed through cygwin (open up cygwin and type
git --version
to check) then the path will most likely be something likeC:\cygwin64\bin\git.exe