This is an old revision of the document!


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

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

All installed under your home 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.

.PHONY: doc man man-perl html info pdf
doc: man-perl
        $(MAKE) -C Documentation all

man: man-perl
        $(MAKE) -C Documentation man

man-perl: perl/build/man/man3/Git.3pm

html:
        $(MAKE) -C Documentation html

info:
        $(MAKE) -C Documentation info

pdf:
        $(MAKE) -C Documentation pdf
  • git_install_from_source.1570046540.txt.gz
  • Last modified: 2019/10/02 20:02
  • by rpjday