Git Installation on Linux
Installing Git on Linux
Linux is a popular and widely used operating system. Installing Git on Linux is a lot simpler as compared to other platforms. We just need to use the appropriate package manager for our Linux distribution.
In this tutorial, we will see how to install and set up Git on various distributions of the Linux operating systems.
For Debian/Ubuntu
Run the following command on the shell/terminal to install Git in Linux.
$ sudo apt-get install gitTo check whether Git was successfully installed, use to --version command:
$ git --versionFor Fedora, CentOS and RHEL
Run the following command from the shell/terminal:
$ sudo dnf install gitIf using an older version then use yum instead of dnf:
$ sudo yum install gitFor OpenSUSE
Open the shell and run the following command to install Git on OpenSUSE:
$ sudo zypper install gitFor Arch and its derivatives
Run the following pacman command in the shell to install Git:
$ sudo pacman -S gitFor Mageia
Use the urpmi command in the shell to install Git:
$ sudo urpmi gitTo check if Git was successfully installed, run the --version command:
$ git --versionIf the above command displays the git version as shown below then Git was successfully installed.

Summary
Congrats on successfully installing Git on your Linux system. We are now ready to start working on Git and manage our projects using Git.
In the next tutorial, we will see how to create a new repository or a project using Git. I hope this tutorial was helpful and you learned something new.










