summaryrefslogtreecommitdiff
path: root/_posts/2008-02-09-remotes.markdown
diff options
context:
space:
mode:
authorPetros Amiridis <petros@github.com>2011-06-16 12:17:23 -0700
committerPetros Amiridis <petros@github.com>2011-06-16 12:17:23 -0700
commit518aa6a8a565aef83eaf8493d8a5979b0625fbc7 (patch)
treee4f29a6d95ad224cab5e1c3d82c1f82c1057a3d8 /_posts/2008-02-09-remotes.markdown
parent0299b66562f722fa497c5885ca46bf694353a774 (diff)
parent1ea5b6db9f39eb77d6774ec45dc793ea3ec919ff (diff)
Merge pull request #38 from jgosmann/gh-pages
a remote can be updated using git remote set-url
Diffstat (limited to '_posts/2008-02-09-remotes.markdown')
-rw-r--r--_posts/2008-02-09-remotes.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/_posts/2008-02-09-remotes.markdown b/_posts/2008-02-09-remotes.markdown
index 832c307..d10454d 100644
--- a/_posts/2008-02-09-remotes.markdown
+++ b/_posts/2008-02-09-remotes.markdown
@@ -26,7 +26,7 @@ Another basic command, `git remote rm example` will delete the "example" remote
### Changing a remote's URL
-There is no direct command to change a remote's URL, so you will usually run `git remote rm` followed by `git remote add` to change a URL. You can also edit the repo's `.git/config` file directly to change the URL without re-fetching the remote.
+`git remote set-url example git://github.com/user/test.git` will set the URL of the remote named "example" to `git://github.com/user/test.git`.
Fetching
--------