-
Clone the code of the remote warehouse to the local
git clone
-
switch the branch to the one where you want to create a new branch
git checkout 想要创建新分支的分支
-
Create a new branch on the current branch
git checkout -b 新分支名称
-
Push local code to remote repository
git push origin 新分支名称
-
At this point, a new branch has successfully appeared in the remote warehouse, and the local branch is also the branch just created.
Git creates a new branch from a branch
Guess you like
Origin blog.csdn.net/weixin_49343190/article/details/121902788
Recommended
Ranking