Mirroring a repository
To make an exact duplicate, you need to perform both a bare-clone and a mirror-push.
Open up the command line, and type these commands:
git clone --bare https://user:bitbucket.com/exampleuser/source-repository.git # Makes a bare clone of the repository cd source-repository.git git push --mirror https://github.com/exampleuser/target-repository.git # Mirror-pushes to the new repository cd .. rm -rf source-repository.git # Remove our temporary local repository