Skip to content

Instantly share code, notes, and snippets.

@jefrnc
Created February 13, 2020 13:23
Show Gist options
  • Save jefrnc/853f76e11ebcf363a4c14e54c6ad6a50 to your computer and use it in GitHub Desktop.
Save jefrnc/853f76e11ebcf363a4c14e54c6ad6a50 to your computer and use it in GitHub Desktop.
Moving Git repository content to another repository preserving history
git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment