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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With