Skip to content

Instantly share code, notes, and snippets.

@AndyDunn
Created November 7, 2014 07:52
Show Gist options
  • Save AndyDunn/58e39124a0006f034df0 to your computer and use it in GitHub Desktop.
Save AndyDunn/58e39124a0006f034df0 to your computer and use it in GitHub Desktop.
Change Git Repo URL
git remote -v
# View existing remotes
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL
# origin https://github.com/user/repo2.git (fetch)
# origin https://github.com/user/repo2.git (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment