Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't find my git.exe file in my Github folder

I downloaded Github for windows and installed it on my computer, which runs windows 7. I tried to open a project with Android Studio but it says "Can't start Git: git.exe" and "IDE error".

When I click "Fix it" it shows:

"Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified".

So I googled and I tried to find git.exe file in my Github folder. In my Github folder there is two folders: one is a project shared by my friend and the other one is "Git1". In Git1 foler, there are only two files: ".gitattributes" and ".gitignore" I can't find "git.exe" file even with the search bar of windows.

How can I fix this error?

like image 253
tesio Avatar asked Sep 27 '14 17:09

tesio


People also ask

Where is my git EXE file?

The default path on windows is C:\Program Files (x86)\Git . The name of the executable is not git.exe on all systems.

How do I find my git path in windows?

Git executable files are located in the C:\Program Files\Git\bin\git.exe and C:\Program Files\Git\cmd . These directories must be added to the PATH environment variable to run the program.

What is git EXE path TortoiseGit?

The TortoiseGit Git.exe Path setting currently points to C:\Program Files\Git\cmd . In the TortoiseGit documentation it states. There is a known issue in msysGit/Git for Windows: Git for Windows provides two git.exe-files (one in a folder named bin and one in a folder named cmd).

How do I know if git is installed or not?

Open the command prompt "terminal" and type git version to verify Git was installed.


1 Answers

The git.exe from Github for windows is located in a path like C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\bin\git.exe1 You have to replace <username> and <numbersandletters> to the actual situation on your system.

In Android Studio you can specify the path to the Git executable at File->Settings...->Version Control->Git->Path to Git executable. Here you have to include the actual executable name. As an example, in my case the actual path is: C:\Users\dennis\AppData\Local\GitHub\PortableGit_69703d1db91577f4c666e767a6ca5ec50a48d243\bin\git.exe

Edit: Last git update has put the git.exe file in cmd\ folder instead of bin\ . so now the actual path will be as suggested in the comment below by al3xAndr3w.

C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\cmd\git.exe 
like image 50
Dennis van der Schagt Avatar answered Sep 30 '22 14:09

Dennis van der Schagt