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