diff options
| author | Petros Amiridis <petros@github.com> | 2011-06-16 12:17:23 -0700 |
|---|---|---|
| committer | Petros Amiridis <petros@github.com> | 2011-06-16 12:17:23 -0700 |
| commit | 518aa6a8a565aef83eaf8493d8a5979b0625fbc7 (patch) | |
| tree | e4f29a6d95ad224cab5e1c3d82c1f82c1057a3d8 /_posts/2008-02-09-remotes.markdown | |
| parent | 0299b66562f722fa497c5885ca46bf694353a774 (diff) | |
| parent | 1ea5b6db9f39eb77d6774ec45dc793ea3ec919ff (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.markdown | 2 |
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 -------- |
