1、创建一个分支
git branch newBranch
2、切换到本地分支
git checkout newBranch
3、拉取master分支的内容到此分支
git pull origin master
4、将本地分支推送至服务器
git push origin newBranch
git branch newBranch
git checkout newBranch
git pull origin master
git push origin newBranch
本文标题:git新建分支,并将原来某一分支内容移到新分支
本文链接:https://www.haomeiwen.com/subject/qfuurqtx.html
网友评论