git提交代码到多个远程Git仓库

一、查看远程仓库git

        git remoteip

        git remote -vrem

二、添加远程仓库关联 it

        git remote add 【name】 【git地址】ast

三、删除远程仓库关联date

        git remote rm 【name】远程

四、git push 【name】【分支名】push

五、报错Updates were rejected because the tip of your current branch is behind参数

    解决办法:使用容许无关联的历史记录的参数拉取以后再 push分支

                    git pull origin master --allow-unrelated-histories

相关文章
相关标签/搜索