github如何复制一个已经有的仓库?

坑:github如何复制一个已经有的仓库?

参考:
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
————————————————
版权声明:本文为CSDN博主「Ken-Jiang」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_26188449/article/details/79913461

posted @ 2019-10-01 18:26  bH1pJ  阅读(38)  评论(0编辑  收藏  举报