From 1ea5b6db9f39eb77d6774ec45dc793ea3ec919ff Mon Sep 17 00:00:00 2001 From: Jan Gosmann Date: Thu, 16 Jun 2011 11:01:54 -0700 Subject: How to change a remote's URL with remote set-url. --- _posts/2008-02-09-remotes.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_posts') 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 -------- -- cgit v1.3.1