美文网首页
git新建分支,并将原来某一分支内容移到新分支

git新建分支,并将原来某一分支内容移到新分支

作者: azu_test | 来源:发表于2019-01-07 15:04 被阅读0次
    1、创建一个分支
    git branch newBranch
    
    2、切换到本地分支
    git checkout newBranch
    
    3、拉取master分支的内容到此分支
    git pull origin master
    
    4、将本地分支推送至服务器
    git push origin newBranch
    

    相关文章

      网友评论

          本文标题:git新建分支,并将原来某一分支内容移到新分支

          本文链接:https://www.haomeiwen.com/subject/qfuurqtx.html