Skip to content

Instantly share code, notes, and snippets.

@omartrigui
Created May 18, 2018 01:22
Show Gist options
  • Save omartrigui/f7854b6440f9bb8cde8667ba0cf80f53 to your computer and use it in GitHub Desktop.
Save omartrigui/f7854b6440f9bb8cde8667ba0cf80f53 to your computer and use it in GitHub Desktop.
Move a full Git repository
git clone <url to origin repo> temp-dir
git branch -a
git checkout branch-name
git fetch --tags
git tag
git branch -a
git remote rm origin
git remote add origin <url to NEW repo>
git push origin --all
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment