One of the GIT series: Version Control Concept, distributed, git introduction and workflow-reprinted

Source: Internet
Author: User
Tags git workflow
One of the GIT series: Version Control Concept, distributed, git introduction and workflow

Note:

Git is powerful, flexible, and easy to use.

But it is also the flexibility of git. How to execute a unified process becomes a problem during the implementation of the company. I spent a lot of time developing a solution.

The purpose is to standardize and unify. There is also how colleagues in windows, especially those who are not familiar with command line, can make them understand and feel simple (before that, we thought there were too many concepts and hard to understand; there were many steps, you can't remember it. If you are not careful, you will get wrong and conflict will occur frequently ).

Speaking of windows, git is not as good as Linux in windows, which is also a problem to be considered.

It is also written on the company's wiki. I can get a blog to count it again ~.

Version Control

------
Simply put, it will be developed locallyCode, Which is regularly pushed to the server. Record the author, time, and description of each modification.

In contrast, we can also pull the code pushed by others from the server and learn about its author, time, modification instructions, and specific modifications.

In this way, Version Control provides great convenience for collaborative development. Even if it is developed by one person, it records our entire development history, which is of great help and value.

For example, if a modification or even a problem occurs throughout the system, it can also help retrieve our precious code.

Distributed version control

-----------
Furthermore, the distributed version control tool enables us to have complete functions on the local machine and is more convenient to use without relying on servers. They often provide other useful or powerful functions, such as flexible branch management.

Git

---
Git is the father of Linux, Linus trovalds. It was established to manage Linux kernel code and is considered to be the top level in distributed version control tools. Intelligent, friendly, strong, and efficient.

Git workflow

----------
1. Use the central server to assist in collaboration;

2. Each person has a branch named by his/her ID on the server;

3. Each person can only push updates to his/her own branch, and cannot push updates to another branch or master;

4. The master node is managed by a dedicated person. When appropriate, other branches of merge (the branches of each person are automatically merge every day at the initial stage of development, and the branches of manual merge passing through review after production );

5. After the code is modified to merge to the master, it will be synchronized to all terminals.

Tip: You can create other branches similar to myid_branchname.

[Tip]: The above is just a concept introduction. For specific operations, refer to: git configuration and Usage Guide under Windows and git advanced functions.

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.