Git installation documentation

1. Install git

Options :

  1. apt (Debian, Ubuntu)
  2. homebrew (Linux, Mac)
  3. pkg (OpenBSD)
  4. sources
  5. binaries (Linux, Mac, Windows)

1.1 Install git using apt (Debian, Ubuntu)

$ sudo apt install git

1.2 Install git using brew (Linux, Mac)

$ brew install git

1.3 Install git using pkg (OpenBSD)

$ doas pkg_add git

1.4 Install git from sources

Download sources from https://github.com/git/git/tags
$ tar xzf git-*.tar.gz
$ cd git-*
$ make
$ sudo make install

1.5 Install git from binaries (Linux, Mac, Windows)

Please see https://git-scm.com/downloads.

Links

If you need more help with git, please see :