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.
The two test directories here are the main branches
2,testing_branch Create a branch
3,testing_branch Switch to Branch
Here, the branch is created.
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
The default is the Clone Master branch.
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
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.