有时候,我们需要复制Githubopen in new window一个仓库到自己、公司的私有库,类似Fork的功能。
git clone --bare https://github.com/exampleuser/old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git