-
Notifications
You must be signed in to change notification settings - Fork 2
Git Change Remote Repo URL
The git remote set-url command changes an existing remote repository URL.
This command takes two arguments:
-
An existing remote name. For example, origin or upstream are two common choices.
-
A new URL for the remote. For example,
https://github.com/USERNAME/OTHERREPOSITORY.git
So to change the URL of a remote repository you would do something like this:
- View the existing remote repository:
git remote -v
- Change the URL of the remote repository:
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
- And you may verify the new remote repository by doing:
git remote -v
For more information check out this github article.
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links