如何copy github上已有的工程到一个新的repository

 ## Mirroring a repository


1. Create a bare clone of the repository.
 git clone --bare https://github.com/exampleuser/old-repository.git


 2. Mirror-push to the new repository.
 cd old-repository.git
 git push --mirror https://github.com/exampleuser/new-repository.git


 3. Remove the temporary local repository you created in step 1.
 cd ..
 rm -rf old-repository.git

猜你喜欢

转载自blog.csdn.net/qq_26188449/article/details/79913461