jun33199
jun33199

Reputation: 155

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

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 ?

Upvotes: 11

Views: 59259

Answers (2)

Krutik
Krutik

Reputation: 1207

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

Upvotes: 7

Filip Bulovic
Filip Bulovic

Reputation: 1816

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

Upvotes: 45

Related Questions