Git仓库迁移命令

1. 从原git上clone bare下到本地

git clone --bare https://***.git

2. push mirror到目标仓库

git push --mirror https://***.git
原文地址:https://www.cnblogs.com/zhongzf/p/11699646.html