Skip to content

Instantly share code, notes, and snippets.

@Omarkth
Last active April 29, 2018 14:40
Show Gist options
  • Select an option

  • Save Omarkth/6b4a2e384030547b0fb21c25c32b5f08 to your computer and use it in GitHub Desktop.

Select an option

Save Omarkth/6b4a2e384030547b0fb21c25c32b5f08 to your computer and use it in GitHub Desktop.
https://stackoverflow.com/a/26552740/169067
git clone --mirror <URL to my OLD repo location>
cd <New directory where your OLD repo was cloned>
git remote set-url origin <URL to my NEW repo location>
git push -f origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment