Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git on Mac OS X v10.7 (Lion)

I just upgraded my Mac to Mac OS X v10.7 (Lion), and now Git is gone:

$ git -bash: git: command not found 

How can I get Git back?

like image 962
AnApprentice Avatar asked Jul 24 '11 22:07

AnApprentice


People also ask

Can I still use Mac OS X Lion?

Some people are still using OS X 10.7 Lion and OS X 10.8 Mountain Lion, and until recently, you had to pay Apple $19.99 to get download codes for those OSes. But there's good news: Apple is now offering Lion and Mountain Lion for free for anyone who wants them.

Does Mac OS come with git?

Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!

Do I need XCode for git on Mac?

Here's a way to install git on Mac OS X without XCode. Adding the directory to the path will prevent Mac OS X from aksing you to install XCode each time you type git in the terminal.

What is the latest git version for Mac?

The latest version is 2.33.0, which was released 12 months ago, on 2021-08-30.


1 Answers

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.

like image 60
Chris Ledet Avatar answered Oct 11 '22 13:10

Chris Ledet