Options :
$ sudo apt install git
$ brew install git
$ doas pkg_add git
$ tar xzf git-*.tar.gz $ cd git-* $ make $ sudo make install
Please see https://git-scm.com/downloads.
If you need more help with git, please see :