Install Git on Linux
First, you can try typing git
to see if the system has git installed:
1 gi
If you happen to be using Debian or Ubuntu Linux, you sudo apt-get install git
can simply complete the git installation in one piece.
If it is a different Linux version, you can install it directly from the source. First download the source code from the GIT official website, then unzip ./config
, make
then enter:, sudo make install
these several commands to install just fine.
After the installation is complete, you will need the final step, and at the command line, enter:
1 git config--global user.name "Your name"
2 git config--global user.email "[email protected]"
Because Git is a distributed version control system, every machine must be tell: your name and email address. You may be worried, what if someone pretends to be someone else? This does not have to worry, first of all we believe that we are good and ignorant of the masses, and secondly, there is a fake there are ways to check.
Note that the parameters of the git config
command --global
, using this parameter, means that all of your git repositories on this machine will use this configuration, of course, you can also assign a different user name and email address to a warehouse.
All tutorials in this series refer to the website http://www.liaoxuefeng.com/from Liao, if you need to delete it, please contact
git tutorial (1)--Install Git