Using Git on Rails project

Written by Arvinder Singh / July 18, 2008 / 1 min read / Filed under Git, / Rails, / Ruby

After watching Linus Torvalds speaking for Git, and the popularity of Github, I am giving git a try. I have been using Subversion for a while, so things moved pretty smoothly.

Steps I took to install Git on OS X Tiger server are as follows (Thanks to LarrytheLiquid):

cd /usr/local/src

Next lets install an XML parser dependency, Git, and it’s man pages:

curl -O http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
tar xvzf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure --prefix=/usr/local
make
sudo make install
cd..

curl -O http://kernel.org/pub/software/scm/git/git-1.5.3.7.tar.gz
tar xvzf git-1.5.3.7.tar.gz
cd git-1.5.3.7
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.3.7.tar.bz2
sudo tar xjv -C /usr/local/man -f git-manpages-1.5.3.7.tar.bz2

Add the following environment variable to whatever file your shell uses (.bash_profile for BASH):

export MANPATH="/usr/local/man:$MANPATH"

One last line to add

export PATH="/usr/local/bin:$PATH"

Git Installed. Check installed version.

git --version