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.


Comments

1 Comment so far

  1. [...] Installing Git On Mac OS X (Snow Leopard) [...]

Name (required)

Email (required)

Website

Leave a Reply