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?

2 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

Browse Categories

...