Skip to content

Instantly share code, notes, and snippets.

@jefrnc
Last active October 15, 2020 04:31
Show Gist options
  • Save jefrnc/ef88628d3f20d146ff787e898c0438f7 to your computer and use it in GitHub Desktop.
Save jefrnc/ef88628d3f20d146ff787e898c0438f7 to your computer and use it in GitHub Desktop.
Git Repository Transfer Keeping All History
git clone --mirror old-repo-url new-repo
cd new-repo
git remote remove origin
git remote add origin new-repo-url
git push --all
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment