Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I add /usr/local/git/bin/ to the PATH on mac osx? [duplicate]

Tags:

git

macos

Possible Duplicate:
git: command not found

how do I add /usr/local/git/bin/ to the PATH on mac osx? I just installed git but it is not recognizing commands. It only responds with "command git not found", and I believe this may be the solution but I do not know how to add it to the path to be used in terminal.

like image 393
Christian Avatar asked Apr 05 '11 00:04

Christian


People also ask

Where is my git installation folder Mac?

The installer from the git homepage installs into /usr/local/git by default. See also this answer. However, if you install XCode4, it will install a git version in /usr/bin.

What does usr bin git mean?

This means that anything that searches for tools using the PATH will find your version of git, and anything that "really must" have the /usr/bin version will most likely have that path hard wired in and can still find it.


1 Answers

You can add the following to ~/.bash_profile:

export PATH=/usr/local/git/bin:$PATH

The change will get applied with the next terminal window you open.

like image 110
dearlbry Avatar answered Oct 16 '22 18:10

dearlbry