Created
November 7, 2014 07:52
-
-
Save AndyDunn/58e39124a0006f034df0 to your computer and use it in GitHub Desktop.
Change Git Repo URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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