If you have a private repository, and you want to copy it to another account, along with commit history etc you can:
- Create a new repo
newRepo - Create a
tempFolder git clone --mirror <old-repo> <tempFolder>git push --mirrorgit remote set-url --push origin <new-repo>- Delete the
tempFolder - Pull the
newRepo - Check that everything works
- Done
Credits to Alkis