GIT implements branch management projects, is envy management more efficient;

Source: Internet
Author: User
Tags using git

Using Git's branch management ability to achieve a more organized pattern of collaborative development;

In fact, when we do git init, we create the master branch of master;

So now how do I build a second branch?

: Git branch Local

The content of the initial branch is exactly the same as the main branch, and all operations in the branch do not affect the situation in the main branch, where you can make any changes;

How do I see a branch?

: Git branch

Local
* Master

The asterisk is the current branch, but the two branches are exactly the same, except that we all regard master as the main branch;

How do I switch branches?

: Git checkout Local

This allows you to do anything in the branch without affecting the other branches;

How do I merge into the main branch?

1:git Checkout Master #将当前分支切换到master Branch

2:git Merge Local #local is the name of the branch to merge, that is, merge the current branch with the local branch

How do I delete a branch?

: Git branch-d Local # deletes the current branch;

This is the case of branch management, which is not understood, please read my other blog post, so you can understand;


Please pay attention to the small red flag Http://blog.csdn.net/happylaoxu point I visit Http://blog.csdn.net/happylaoxu


Reprint please indicate the source: Thank you! Http://blog.csdn.net/happylaoxu

GIT implements branch management projects, is envy management more efficient;

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.