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?
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.
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!
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.
The latest version is 2.33.0, which was released 12 months ago, on 2021-08-30.
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 love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With