第一步,以bare的形式克隆老仓库
git clone --bare https://github.com/exampleuser/old-repository.git
第二步 镜像push到新的仓库的地址
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git
第一步,以bare的形式克隆老仓库
git clone --bare https://github.com/exampleuser/old-repository.git
第二步 镜像push到新的仓库的地址
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git