Skip to content

Instantly share code, notes, and snippets.

@fabiojose
Created January 18, 2019 10:45
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 fabiojose/03bf022427c288129db77d9c295f458c to your computer and use it in GitHub Desktop.
Save fabiojose/03bf022427c288129db77d9c295f458c to your computer and use it in GitHub Desktop.
OLD_REPO=<OLD_REPO_URL>
NEW_REPO=<NEW_REPO_URL>
git clone --mirror $OLD_REPO
cd <Old repo directory>
git remote set-url origin $NEW_REPO
git push -f origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment