Git如何同步多个远程仓库

sinferwu / 2023-05-23 / 原文

 

 

Git如何同步多个远程仓库

 

https://blog.csdn.net/L_Y_Fei/article/details/108406927

 

cd existing_repo
git remote rename origin old-origin
git remote add origin http://xx.xx.xx.xx/xx.git
git push -u origin --all
git push -u origin --tags

git push -u origin --all --force


git remote rm old-origin