up vote 0 down vote favorite
share [g+] share [fb]

I downloaded and install Git from http://code.google.com/p/git-osx-installer/ .
After installing I can't use my Git installation.

thomas-macbook-:test zozo$ git init
-bash: git: command not found

What is wrong?

link|improve this question
1  
It compiles and installs flawlessly from source. Try that instead of this person's installer. – Hasaan Chop Mar 19 '10 at 20:32
feedback

1 Answer

You'll need to add /usr/local/git/bin/ to your PATH, for example by adding to .profile

export PATH=/usr/local/git/bin/:$PATH
link|improve this answer
That syntax is not supported by all the shells that might use .profile. You should use PATH=…; export PATH if you want to put something like that in .profile. Or, feel free to stick something like that in .bash_profile/.bash_login. Note that bash will only use the first of .bash_profile/.bash_login/.profile that it finds and can read (so if the user has one of the other files, editing .profile will be ineffective (unless they ‘source’ .profile)). – Chris Johnsen Mar 19 '10 at 21:01
feedback

Your Answer

 
or
required, but never shown