clone 所有分支到本地
1 2 3 4
| git clone xxxx.git git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all
|
push 到新的远程空仓库
1 2 3 4 5
| git remote rename origin old-origin git remote add origin https://yyyy.git git push -u origin --all git push -u origin --tags
|
原文链接:https://blog.csdn.net/weixin_41012767/article/details/121920518
------------- 本文结束 感谢您的阅读-------------