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: 
You have to find where the Git executable is and then add the folder to the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable in file *.bash\_profile*.

Using terminal:

1. Search for Git:

```
 sudo find / -name git

```
2. Edit the *.bash\_profile* file. Add:

```
 PATH="<Directory of Git>:$PATH"

```

Git is back :-)

Anyway, I suggest you to install Git using [MacPorts](https://en.wikipedia.org/wiki/MacPorts). In this way you can easily upgrade your Git instance to the newest release.
It's part of [Xcode](https://en.wikipedia.org/wiki/Xcode). You'll need to reinstall the developer tools.