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

相關文章
相關標籤/搜索