Skip to content

Instantly share code, notes, and snippets.

@jonathanmoore
Created March 4, 2013 19:38
Show Gist options
  • Save jonathanmoore/5084856 to your computer and use it in GitHub Desktop.
Save jonathanmoore/5084856 to your computer and use it in GitHub Desktop.
A useful set of commands to switch over to Github as a new remote.
git remote rm origin
git remote add origin [email protected]:user/repo.git
git push -u origin master
git push --all
git push --tags
@jonathanmoore
Copy link
Author

  • remove your existing GIT origin
  • add your new remote on Github
  • push the master
  • push all other branches
  • push all of the tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment