git clone --mirror ORIGINAL-REPOSITORY-URL DIRECTORY-NAME
cd DIRECTORY-NAME
git remote add NEW-REMOTE NEW-REPOSITORY-URL
git push NEW-REMOTE --mirror
Created
February 12, 2018 23:08
-
-
Save xthiago/617e8d189cb4cf2cc2343c69113a3fe6 to your computer and use it in GitHub Desktop.
Moving git repository and all its branches, tags to a new remote repository keeping commits history
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment