What is the correct way for git to create a sub-branch under a branch
迷茫2017-05-02 09:39:55
Two steps
#切换到分支
git checkout branch1
#基于该分支创建子分支
git checkout -b branch2_based_on_b1 branch1
仅有的幸福2017-05-02 09:39:55
git checkout -b new branch name old branch name (this way of writing means creating a new branch based on the old branch)