The way to install the Git binaries on a Linux system depends on the distribution you are using. Different distributions often have different package managers.
To install Git on an Ubuntu system, you can use the following command in the terminal:
$ sudo apt install git
When you are asked to confirm the installation of the package (and its dependencies), enter “y” and press enter.
To install Git on a Fedora system, you can use the following command in the terminal:
$ sudo dnf install git
When you are asked to confirm the installation of the package (and its dependencies), enter “y” and press enter.