summaryrefslogtreecommitdiff
path: root/_posts/2008-02-09-remotes.markdown
diff options
context:
space:
mode:
authorJan Gosmann <jan@hyper-world.de>2011-06-16 11:01:54 -0700
committerJan Gosmann <jan@hyper-world.de>2011-06-16 11:01:54 -0700
commit1ea5b6db9f39eb77d6774ec45dc793ea3ec919ff (patch)
treee4f29a6d95ad224cab5e1c3d82c1f82c1057a3d8 /_posts/2008-02-09-remotes.markdown
parent0299b66562f722fa497c5885ca46bf694353a774 (diff)
How to change a remote's URL with 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
--------