mardi 9 février 2016

Starting with GIT on LINUX (UBUNTU/Debian distribution)

Install:


we will use apt-get command with admin rights (sudo):

$ sudo apt-get install git-all 

and we could install it from source but we have to verify if  those librairies are already installed on our machine:
1- curl
2- zlib
3- openssl
4- expat
5- libiconv

Then we

$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \ libz-dev libssl-dev

$ sudo apt-get install asciidoc xmlto docbool2x


$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0 $ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info

for updating GIT after, we could do it from GIT itself:

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