Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)
edited by
I have PyCharm and I am looking around trying to find git.exe to set it up with my repo.

What is the PATH to git.exe?

3 Answers

+1 vote
by (27.5k points)
edited by

Git executable can be found by using running git --exec-path, which usually lives in the Git execution path. git --exec-path will give you the path. 

But for Linux, the path is /user/libexec/git-core

Note: If git foo is not a built-in command then the command will first search for the git-foo commands in the git exec path, then in the rest of your $path 

0 votes
by (140 points)
First of all check for Git version, if it is installed in your device or not

git --version

You will see something like -> git version 2.18.0.windows.1 , if installed.

check for git.exe file at C:\Program Files\Git\bin

If not fount git.exe file, check by setting Git executable path as below:

C:\Program Files\Git\mingw64\bin
0 votes
ago by (1.7k points)

The location of git.exe depends on how you installed Git on your computer:

1. If you installed Git for Windows, then the location is usually:

C:\Program Files\Git\bin\git.exe

- or:

C:\Program Files (x86)\Git\bin\git.exe

2. Using the option Git Bash:

C:\Program Files\Git\cmd\git.exe

3. Environment PATH:

where git

This should print out the exact location if Git is in your system's PATH.

Now in PyCharm, go to Settings > Version Control > Git, and add a path to the git.exe.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...