How to install Git on Linux
Chances are, your Linux distribution already came with Git installed. In order to test that, open a terminal, type
git --version
and press enter. If the git version is shown, git obviously is already installed; otherwise, you will get a "command not found." In that case, install Git with the package management tool of your distribution. On Debian-based distribution such as Ubuntu, use
sudo apt-get install git-all
in Suse, use
sudo zypper install git-all
while on RHEL based distributions
sudo dnf install git-all
will do the job. Check git --version again to see that your install was successful. For more information, see the Git website: https://git-scm.com/.