美文网首页
git挪仓库

git挪仓库

作者: QLing09 | 来源:发表于2020-05-25 18:38 被阅读0次

    拷贝原仓库代码

    branchName: 分支名称
    ***.git ssh地址,或者http地址
    projectName: cd 进入到clone下来的项目
    
    git clone -b branchName ***.git
    cd projectName
    

    push 镜像代码

    ***.git: 将旧有clone下来的项目push镜像到mirror里面

    
    git push --mirror ***.git
    

    注意事项

    新的项目需要是新建的,master分支上面不要新建任何东西

    IMG_2721.JPG

    相关文章

      网友评论

          本文标题:git挪仓库

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