git 多远程源同步推送

发布时间:2022-07-01浏览次数:0

  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. 同步推送
字节笔记本扫描二维码查看更多内容