How to find the install path of git in Mac or Linux?
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
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