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:

Finally:

PATH=~/newgit/bin:$PATH

and away you go.