Dec
17
Installing Git On Mac OS X (Snow Leopard)
December 17, 2009 | 1 Comment
There are a lot of how to’s out there with several solutions including installing from source, from binaries, with an installer. Here is how I’ve done it guided by the following posts:
First, I downloaded git from its homepage in bz2 format.
Then, I compiled it and installed it using the following commands :
1 2 3 4 5 | cd ~/Downloads tar -xjf git-1.6.1.3.tar.bz2 cd git-1.6.1.3 make prefix=/opt/git sudo make install prefix=/opt/git |
Finally, I added an alias called git to /opt/git/bin/git in my .bash_profile:
1 | alias git='/opt/git/bin/git' |
You can then configure Git with the following commands:
1 2 | git config --global user.name "Your Name" git config --global user.email "Your Email" |
That’s all, you’re done.
Filed under: Mac OS X
Tagged with: git
Liked this page?
Tweet it
Tweet
Subscribe to the RSS feed or sign up for the newsletter now.
[...] Installing Git On Mac OS X (Snow Leopard) [...]