Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the install path of git in Mac or Linux?

Tags:

git

linux

macos

I want to configure the git in jenkins,but I can't find the install path of git in my mac. can you help me ?

like image 409
jun33199 Avatar asked Jun 30 '15 02:06

jun33199


People also ask

How do I find where git is installed on my Mac?

How do I know if Git is installed? To see if Git is installed on your system, open your terminal and type git --version . If your terminal returns a Git version as an output, that confirms you have Git installed on your system. If not, you have to download Git for Mac or Windows.

How do I find my git path in Linux?

Go to home directory and type the find . -name ". git" comment, it will list all the git repo in your computer.

How do you find where my git is installed?

The default path is “C:\Program Files\Git“. If you want the software installed in a different location click Browse and specify a different folder.

Is git installed on Mac?

Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!


2 Answers

Execute in terminal

$ which git

that produces output

/usr/bin/git

on Linux. If you are looking for where is install directory on MAC and you installed git with brew then

brew info git

on Debian

dpkg -L git
like image 68
Filip Bulovic Avatar answered Sep 28 '22 12:09

Filip Bulovic


For Linux we can use any of the following commands to find the location of GIT installation directory.

1. type git
2. which git
3. command -v git
4. whereis git
like image 29
Krutik Avatar answered Sep 28 '22 12:09

Krutik