Fast learning -Git branch management

5, branch management (branch)

master 分支(仅总监可以操作)【完整的项目】
↑
dev分支(开发操作,测试分支)【需要测试的完整的项目】
    user分支(模块)【具体功能模块】
    order分支
    fix-user-avatar分支
    fix-xxxx-xxxx   分支

Syntax:
View branch: git branch
create a branch: git branch branch name
switch branch: git checkout branch name
Here Insert Picture Description
Here Insert Picture Description
after creating a branch and commit, will prompt online:
Here Insert Picture Description
branch only when just created is the same, which branch subsequent change, which branch was changed.

If the test branch iteration is complete, we need to merge the master branch to submit a request, after the merger will be two branches of the same content.

Released 1939 original articles · won praise 2057 · Views 180,000 +

Guess you like

Origin blog.csdn.net/weixin_42528266/article/details/105142859