Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded and install Git from .
After installing I can't use my Git installation.

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

What is wrong?

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

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
share|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

You must log in to answer this question.