If you’re on a Debian-based distribution, such as Ubuntu, try apt command $ sudo apt install git-all. For more options, there are instructions for installing on several different Unix distributions on the Git website.