Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eduardopintor/0d4f335a94796cafd5eaf5a07f6671ac to your computer and use it in GitHub Desktop.
Save eduardopintor/0d4f335a94796cafd5eaf5a07f6671ac to your computer and use it in GitHub Desktop.
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin [repository]
git push -u origin --all
git push -u origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment