git tutorial (1)--Install Git

Source: Internet
Author: User
Tags version control system

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.