First, you can try to enter git and see if the system has any git installed:
$ git
The program ' git ' are currently not installed. Can install it by typing:
sudo apt-get install git
Like the above command, there are a lot of Linux that will be friendly enough to tell you that Git is not installed and will tell you how to install Git.
If you happen to use Debian or Ubuntu Linux, a sudo apt-get install git can be done directly
The installation of Git is very simple.
Older Debian or Ubuntu Linux, change the command to sudo apt-get install Git-core, because
The former software is also called Git (GNU Interactive Tools), and as a result git can only be called Git-core. Because Git name
The gas is really too big, then the GNU Interactive Tools changed to Gnuit,git-core officially git.
If it is another Linux version, it can be installed directly through the source code. First from git website download source code, and then decompression, in turn to lose
into:./config,make,sudo make install these commands are ready to be installed.