X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=Documentation%2Fgit-remote.txt;h=3fc599c0c7d5495ada81b20e4d37fa4936708270;hb=6e10b9c9999cbbdfae1087a34efd701108acd806;hp=c272c92d4bef4d451505634a412eaf3a10762d95;hpb=7b576f9910a2945688f04f6ff9d03771f2956618;p=git.git diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index c272c92d4..3fc599c0c 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -14,6 +14,9 @@ SYNOPSIS '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 @@ remote set-head origin master" will set `$GIT_DIR/refs/remotes/origin/HEAD` to `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 @@ $ git checkout -b nfs linux-nfs/master ... ------------ -* Imitate 'git-clone' but track only selected branches +* Imitate 'git clone' but track only selected branches + ------------ $ mkdir project.git