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.
If you do not want to install Xcode and/or [MacPorts](https://en.wikipedia.org/wiki/MacPorts)/[Fink](https://en.wikipedia.org/wiki/Fink_(software))/[Homebrew](https://en.wikipedia.org/wiki/Homebrew_(package_manager)), you could always use the standalone installer: <https://sourceforge.net/projects/git-osx-installer/>