Question: I just upgraded my Mac to [Mac OS X v10.7](https://en.wikipedia.org/wiki/Mac_OS_X_Lion) (Lion), and now Git is gone:

```
$ git
-bash: git: command not found

```

How can I get Git back?

Answer: 
The default install location is */usr/local*, so add this to your *~/.bash\_profile* file:

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

```

Then run `source ~/.bash_profile` in Terminal.
It's part of [Xcode](https://en.wikipedia.org/wiki/Xcode). You'll need to reinstall the developer tools.