:: What is Git
Git is distributed version control system focused on speed, effectivity and real-world usability on large projects. – git-scm -
:: How to Install Git on Linux Debian
o Download Git source code
|
1 2 3 4 |
# cd /usr/local/src
# wget http://kernel.org/pub/software/scm/git/git-1.7.5.4.tar.bz2
# cd /usr/local/src/
# tar -xjf git-1.7.5.4.tar.bz2 |
o Create configure file of Git
|
1 2 |
# cd git-1.7.5.4/
# make configure |
if you get error like:
12 /bin/sh: curl-config: not foundmake: `configure' is up to date.you can fix the error using this:
1 # aptitude install libcurl3-gnutls-dev libcurl3-openssl-dev
o Compiling Git
|
1 2 3 |
# ./configure --prefix=/usr
# make all
# make install |
if you want to install with documentation, you can compiling Git using this:
|
1 2 |
# make all doc
# make install install-doc install-html |
:: Checking and testing Git
|
1 2 3 |
$ git --version
git version 1.7.5.4
$ git clone git://git.kernel.org/pub/scm/git/git.git |