Tortoisegit git branch of learning notes

Source: Internet
Author: User
It's important to be a branch of your own product. For example, I have released an app, but there are bugs, and I want to do new features, how to do? If you only develop on a git, the bug will be more and more, the original bug has not been changed, new features developed, and will produce new bugs. In this case, the bug will never be finished, release conference dragged on.

The right approach, the main branch, the development of new features, the creation of branches to modify the bug, the regular branch to the main branch, the release of the new branch, the revision of the bug version, belong to the stable version. The release version into a ladder-like. Here's a quick way to create a git branch with Tortoisegit, which is easier for individuals.

1,clone two versions


Clone 2 Test Projects

The two test directories here are the main branches

2,testing_branch Create a branch


Create a branch


Create a branch

3,testing_branch Switch to Branch


First step


Second Step


Step three View

Here, the branch is created.

4, Test Branch

Add a file to the Testing_branch, and then Add,commit,push, in the testing project pull, you will find nothing pull down.

5, individual clone branch


Clone New Branch


Clone New Branch

The default is the Clone Master branch.

6, Branch Merge


First step


Second Step


Third Step

The branch and main branch of Git, just the difference in name, is no different, whether the primary branch is merged into the branch or the branch merge main branch is the same.

After merging into the testing directory, in pull, you will find the branch created by the file that can pull down the

7, delete the branch


Delete Branch

Before you delete a branch, you first merge the branch content into the main branch, and you switch the current branch to the main branch, which is the 3rd step, but the opposite.

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.