Skip to content
Browse files

Added a new wiki article - Change the URL of a remote repository

minor changes
  • Loading branch information...
1 parent 51937eb commit e54513911fee2603caa99d53281f7f43c140da83 rishipuri committed
Showing with 25 additions and 0 deletions.
  1. +25 −0 Git-Change-the-URL-of-a-remote-repository.md
View
25 Git-Change-the-URL-of-a-remote-repository.md
@@ -0,0 +1,25 @@
+# Change the URL of a remote repository
+
+The `git remote set-url` command changes an existing remote repository URL.
+
+**This command takes two arguments:**
+
+1. An existing remote name. For example, origin or upstream are two common choices.
+
+2. 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:**
+
+1. View the existing remote repository:
+
+ ```git remote -v```
+
+2. Change the URL of the remote repository:
+
+ ```git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git```
+
+3. And you may verify the new remote repository by doing:
+
+ ```git remote -v```
+
+*For more information check out [this github article.](https://help.github.com/articles/changing-a-remote-s-url/)*

0 comments on commit e545139

Please sign in to comment.
Something went wrong with that request. Please try again.