How to clone, build and install Git as a non-root user.
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
All installed under your selected directory:
Finally:
PATH=~/newgit/bin:$PATH
and away you go.