User Tools

Site Tools


git_install_from_source

This is an old revision of the document!


Table of Contents

Overview

How to clone, build and install Git as a non-root user.

The recipe

Clone:

$ git clone https://github.com/git/git.git

Configure for personal destination directory:

$ make configure
$ ./configure --prefix=/home/rpjday/newgit

Build and install:

$ make all install
$ make doc install-doc install-html

The end results

All installed under your selected directory:

  • bin/
    • git
    • git-cvsserver
    • gitk
    • git-receive-pack
    • git-shell
    • git-upload-archive
    • git-upload-pack
  • libexec/
    • git-core/
      • … LOTS here …
  • share/
    • git-core/
      • templates/
    • git-gui/
    • gitk/
    • gitweb/

Finally:

PATH=~/bin:$PATH

and away you go.

git_install_from_source.1570048575.txt.gz · Last modified: 2019/10/02 20:36 by rpjday