广西建设厅考试网站,wordpress菜单栏竖排,建网站培训班,可以购买网站空间的网站这个操作#xff0c;一般是同步不同网站的同个仓库#xff0c;比如说gitee 和github。某个网站更新了#xff0c;你想同步他的分支过来。然后基于分支开发或者其它。
操作步骤
1.本地先clone 你自己的仓库。也就是要push 分支的仓库。比如A仓库#xff0c;把B仓库分支一般是同步不同网站的同个仓库比如说gitee 和github。某个网站更新了你想同步他的分支过来。然后基于分支开发或者其它。
操作步骤
1.本地先clone 你自己的仓库。也就是要push 分支的仓库。比如A仓库把B仓库分支push到A仓库。
git clone https://github.com/SpongeBab/soil-stone.git (A仓库2.然后git remote add repo_b 仓库地址
git remote add gitee https://gitee.com/vegetable_pen/soil-stone.gitrepo_b 是你自己起的名字随便都行作为标记
3.然后fetch gitee 的分支
git fetch gitee gitee:gitee必须本地先checkout 分支
要不然push 到另一个仓库并不生效可能因为毕竟是两个网站。
git checkout gitee_testbranch 4.然后push
git push origin giteegit push origin gitee_testbranch 这样就直接把gitee 上的gitee或者gitee_testbranch 分支推到了github 而且是显示这样两个图标这样的就说明fork 自己的仓库本地remote add 官方仓库然后push 分支到官方比如yolo经常能看到这样。