git clone --bare xxx.git
git remote add remote2 xxxx.git
git push --mirror remote2
[参考]
如何迁移一个Git仓库 - 知乎git push all branches from one remote to another remoteWhat’s the difference between git clone –mirror and git clone –bare
留待后查,同时方便他人
联系我:renhanlinbsl@163.com