Lihat https://help.github.com/articles/duplicating-a-repository
Versi pendek:
Untuk membuat duplikat yang tepat, Anda perlu melakukan bare-clone dan mirror-push:
mkdir foo; cd foo
# move to a scratch dir
git clone --bare https://github.com/exampleuser/old-repository.git
# Make a bare clone of the repository
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git
# Mirror-push to the new repository
cd ..
rm -rf old-repository.git
# Remove our temporary local repository
CATATAN: hal di atas akan berfungsi dengan baik dengan repo git jarak jauh apa pun, instruksinya tidak khusus untuk github
Di atas membuat salinan jarak jauh baru dari repo. Kemudian klon ke mesin kerja Anda.