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;