Git Installation on Linux

Install Git

On Linux, open a terminal and install Git via your package manager.

For example, if you are using Ubuntu or another Debian-based distribution, run sudo apt-get install git.  If you're using Fedora, run sudo yum install git.

Run Git Commands

Now open a new terminal, and you will be able to run Git commands.  For example, try running git --version.