Git Learning Series (1) getting started with Git

Source: Internet
Author: User
Tags how to use git

As a version control tool, Git is often used in our work, especially in mobile development. Let's take a look at Git:

Git is a distributed version control software. It is a distributed version control system written by Linux author Linus in C.

If you are interested in the History of Git, click the link to go to the official website to learn about it: A Short History of Git

Git has the following main features::
1. Speed: Git stores the versions and updates of all current projects locally, and most of the operations in Git are local, so there is no need to connect to the network, so the processing speed is high.
2. simple design: The implementation of Git has nothing to do with project complexity. It can always create and switch branches within several milliseconds.
3. Fully Distributed mode: each user has a complete version library on his/her computer and supports offline work (most operations are performed locally). Local submission can be submitted to the server later.
4. Strong support for the non-linear development model: allows thousands of parallel development branches.

To learn about Git, you must download and install it first. You can click the link to download Git and see:


Because I have installed it before, I still use the previous version 1.8.4. The installation process is relatively simple. click Next.

After installation, double-click Git Bash to generate something similar to the command line window. Enter git -- version, and you can see the following:


Now that Git has been installed successfully, before learning about Git, let's go to the official website and see what the official documentation is.


The instructions on the official website are detailed. If you have good English, I believe you will be able to master it soon. For my children's shoes that are not very good at English, it seems that I have to spend some effort. But after all, we still have to "wear first-hand shoes ".

There are a lot of commands. Don't worry. Because Git is a distributed version control system, we should first "Report to the house", click config, and then CTRL + F to find user. name and user. email.


You can enter:

$ Git config -- global user. name "your name"
$ Git config -- global user. email "email@example.com"

Note that the -- global parameter of the git config command, as the name suggests, uses this parameter to indicate that all Git Repositories on your computer will use this configuration (this should be well understood ), of course, you can also specify different owners for a warehouse. name and user. email. Of course, if you do not configure this information, the machine name is usually used during git commit, which is inconvenient. Therefore, we recommend that you configure CLEAR user. name and user. email information.

After configuration, you can use git config-l to view the current git configuration list.


Summary:

Today, let's take a look at Git and start to learn how to use Git to manage our repository (version Library) and version updates tomorrow.


Related Article

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.