git 多远程源同步推送

2 min read
  1. 如果已经存在A源,先删除已存在的远程源A
git remote rm 仓库A(名称)
  1. 使用git remote set-url 命令增加源, 也就是在已存在的仓库B源基础上 增加 仓库A的远程源
git remote set-url --add 仓库B(名称) http://仓库A地址
  1. 查看远程源
git remote -v
  1. 同步推送