The understanding of Git

Source: Internet
Author: User

git-distributed version control system, but what is specific, I do not understand. So I searched the internet for a moment:

Git is an open source distributed version control system for efficient, high-speed processing of project versioning from very small to very large.

Git is an open source version control software developed by Linus Torvalds to help manage the development of the Linux kernel.

Torvalds started to develop Git as a transitional solution to replace BitKeeper, which was previously the primary source code tool used by Linux kernel developers worldwide. Some in the open source community felt that BitKeeper's license was not appropriate for the open-source community, so Torvalds decided to work on a more flexible version control system. Although Git was originally developed to assist the Linux kernel development process, we have found that Git is also used in many other free software projects. For example, recently migrated to Git, and many freedesktop projects migrated to Git.

The biggest difference between distributed and centralized is that developers can submit locally. Each developer machine has a database of servers.

Features of Git:

From a general developer's point of view, Git has the following features:

1: Clone the database (including code and version information) from the server onto a single machine.

2: Create a branch on your own machine and modify the code.

3: Commit the code on the branch you created on the stand-alone.

4: Merge Branches on a single machine.

5: Create a new branch, fetch the latest version of the code on the server, and merge it with your main branch.

6: Create patches to send patches to the main developer.

7: Looking at the feedback from the main developer, if the main developer discovers that there is a conflict between the two general developers (they can work together to resolve the conflict), they will be asked to resolve the conflict before being submitted by one of them. If the main developer can resolve it himself, or if there is no conflict, pass.

8: The method of resolving conflicts between the general developers, the developer can use the pull command to resolve the conflict, resolve the conflict and then submit the patch to the main developer.

The biggest difference between distributed and centralized is that developers can submit locally. Each developer machine has a database of servers.

The understanding of 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.