From: Junio C Hamano Date: Sat, 23 Jan 2010 00:08:07 +0000 (-0800) Subject: Merge branch 'il/remote-updates' X-Git-Tag: v1.7.0-rc0~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=16735ae0f8a8e2df5e54807fd0a5930eb97dcb7a;hp=-c;p=git.git Merge branch 'il/remote-updates' * il/remote-updates: Add git remote set-url --- 16735ae0f8a8e2df5e54807fd0a5930eb97dcb7a diff --combined Documentation/git-remote.txt index b03ccaac3,35d32f7de..3fc599c0c --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@@ -14,6 -14,9 +14,9 @@@ SYNOPSI 'git remote rename' 'git remote rm' 'git remote set-head' (-a | -d | ) + 'git remote set-url' [--push] [] + 'git remote set-url --add' [--push] + 'git remote set-url --delete' [--push] 'git remote' [-v | --verbose] 'show' [-n] 'git remote prune' [-n | --dry-run] 'git remote' [-v | --verbose] 'update' [-p | --prune] [group | remote]... @@@ -101,6 -104,20 +104,20 @@@ remote set-head origin master" will se `refs/remotes/origin/master` already exists; if not it must be fetched first. + + 'set-url':: + + Changes URL remote points to. Sets first URL remote points to matching + regex (first URL if no is given) to . If + doesn't match any URL, error occurs and nothing is changed. + + + With '--push', push URLs are manipulated instead of fetch URLs. + + + With '--add', instead of changing some URL, new URL is added. + + + With '--delete', instead of changing some URL, all URLs matching + regex are deleted. Trying to delete all non-push URLs is an + error. + 'show':: Gives some information about the remote . @@@ -161,7 -178,7 +178,7 @@@ $ git checkout -b nfs linux-nfs/maste ... ------------ -* Imitate 'git-clone' but track only selected branches +* Imitate 'git clone' but track only selected branches + ------------ $ mkdir project.git