Git 同时 push 推送到 GitHub、gitee 等多个平台
推 git 也是可以推送到不同的平台的;
再因为你懂得的原因;
github 时而有不靠谱的情况;
而且速度奇慢;
偶尔有事需要下载下项目;
那个急啊;
所以我的开源项目都是同时推送到 github 和码云的;
github:
https://github.com/xiaoxuan6
码云:
http://gitee.com/XiaoXue6
ok;下面来讲怎么同时推送;
以我的新博客为例: 添加 github:
git remote add origin https://github.com/xiaoxuan6/push-two.git
添加码云:
git remote set-url --add origin https://gitee.com/XiaoXue6/push-two.git
就是简单,大功告成!
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: