git迁移仓库
git clone --bare xxx.git
git remote add remote2 xxxx.git
git push --mirror remote2
如果不能拉代码可以使用
git pull origin master --allow-unrelated-histories
[参考]
如何迁移一个Git仓库 - 知乎
git push all branches from one remote to another remote
What’s the difference between git clone –mirror and git clone –bare
留待后查,同时方便他人
联系我:renhanlinbsl@163.com
联系我:renhanlinbsl@163.com