What is the correct way to create a sub-branch under a branch in git?
phpcn_u1582
phpcn_u1582 2017-05-02 09:37:55
0
3
696

What is the correct way for git to create a sub-branch under a branch

phpcn_u1582
phpcn_u1582

reply all(3)
迷茫

Two steps

#切换到分支
git checkout branch1

#基于该分支创建子分支
git checkout -b branch2_based_on_b1 branch1 
黄舟

checkout -b

仅有的幸福

git checkout -b new branch name old branch name (this way of writing means creating a new branch based on the old branch)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template