$ git clone --bare https://github.com/exampleuser/old-repo.git
# Make a bare clone of the repo
cd old-repo.git
$ git push --mirror https://github.com/exampleuser/new-repo.git
# Mirror-push to the new repo
cd ..
$ rm -rf old-repo.git
# Remove our temporary local repo
Created
March 15, 2013 00:08
-
-
Save r-sal/5166427 to your computer and use it in GitHub Desktop.
Git Repository Notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment