Skip to content

Instantly share code, notes, and snippets.

@omps
Created March 3, 2016 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omps/656178ec82bb5bcaceab to your computer and use it in GitHub Desktop.
Save omps/656178ec82bb5bcaceab to your computer and use it in GitHub Desktop.
Install Git
$ sudo yum install curl-devel expat-devel gettext-devel \
openssl-devel perl-devel zlib-devel
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
libz-dev libssl-dev
$ sudo yum install asciidoc xmlto docbook2X
$ sudo apt-get install asciidoc xmlto docbook2x
$ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
You can get it via the Kernel.org site, at https://www.kernel.org/pub/software/scm/git, or the mirror on the GitHub web site, at https://github.com/git/git/releases.
$ 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
To Upgrade
$ git clone git://git.kernel.org/pub/scm/git/git.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment