Bootstrapping Git Onto CentOS

I’m working on getting Git set up on the same server I’ve been using for my Subversion (SVN) server.

The SVN files are in /var/www/svn.

Just to keep things clean, I’m going to put the git stuff in its own directory /var/www/git.

Seems logical.

Since I’ve got no ‘git’ on this server at all, first, I have to “get git”, as it were.

On the home page of git at : Git

There’s a box in the middle of the right hand side of the page titled “Download GIT source package” which leads to:

Download Source Package

So, at the command prompt:

[/usr/local/src]# wget http://kernel.org/pub/software/scm/git/git-1.6.0.5.tar.gz
[/usr/local/src]# tar zxvf git-1.6.0.5.tar.gz
[/usr/local/src]# cd git-1.6.0.5
[/usr/local/src]# ./configure
[/usr/local/src]# make
[/usr/local/src]# make install
[/usr/local/src]# git

Shows the help for the git command line.

Git installed, yay!

Leave a comment

You must be logged in to post a comment.