Thursday, November 20, 2008

Ubuntu 7.10 + Git

I got curious and wanted to start playing with Git after hearing about it in the community for a while now. This is how I did it:

sudo apt-get install git

This will get the version 1.5.* from the Gutsy repos. This is old, so I decided to upgrade it.

git clone git://git.kernel.org/pub/scm/git/git.git

This will create a git folder. But first, we need to install some dependencies:

sudo apt-get install zlib1 zlib1-dev openssl libcurl3 libcurl3-dev libexpat1 libexpat1-dev asciidoc xmlto

Next, it's time to install Git. You can install Git either for the local user or for the global system. I decided to install it globally:

cd git
make configure
./configure
make all doc
sudo make install install-doc install-html

This should run for a while. You can sit back and pretend you understand all the output, or you can now go grab a coffee. After it completes, you can do a

git --version

to check if Git was updated. Now, time to play!


W

No comments: