Tuesday, July 24, 2012

How to install Git on Linux

1. The easiest way is to install Git using package managers, and you can refer to the following page:
http://git-scm.com/downloads

2. if you really cannot use any package manager, the final choice is to install Git from its source codes, which can be found at:
http://code.google.com/p/git-core/downloads/list
Then you can install Git from the source code (according to the INSTALL in the root directory of the Git source code tarball):
    $ make configure ;# as yourself
    $ ./configure --prefix=/usr ;# as yourself
    $ make all doc ;# as yourself
    # make install install-doc install-html;# as root