美文网首页Git使用Git
GitLab切换远程仓库处理

GitLab切换远程仓库处理

作者: freesan44 | 来源:发表于2019-06-17 10:02 被阅读0次
    1. 把旧远端仓库【旧命名】化
    git remote rename origin old-origin
    

    或者删除旧远端仓库删除

     git remote rm origin
    
    1. 新增远端仓库路由
    git remote add origin git@158.158.158.158:8888/project.git
    git remote add origin http://158.158.158.158:8888/freesan44/project.git
    
    1. 同步推送远端仓库
    git push -u origin --all
    git push -u origin --tags
    

    相关文章

      网友评论

        本文标题:GitLab切换远程仓库处理

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