git添加远程备份仓库(push)

mowen 2026-04-24 3

1、清除原有仓库

git remote remove origin


2、重新添加原有仓库(fetch+push)

git remote add origin URL_A


3、添加备份仓库(push)

git remote set-url --add --push origin URL_B


后续会从URL_A拉取(fetch/pull),往URL_A和URL_B进行推送(push)

最新回复 (0)
返回
发新帖
X