Skip to content

Instantly share code, notes, and snippets.

@hwshim0810
Created April 4, 2018 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hwshim0810/b34faecdf88348d4f9b5efd2d32a8336 to your computer and use it in GitHub Desktop.
Save hwshim0810/b34faecdf88348d4f9b5efd2d32a8336 to your computer and use it in GitHub Desktop.
Copy git repository to new repository with reservation history
git clone --mirror [OriginRepo.git]
cd [OriginRepo.git]
git remote set-url --push origin [New Repo.git]
git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment