X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-remote.txt;h=fad983e297514da7e847196b0375e3254fdf235d;hb=6d14414d21973580547ca1935b2692a43c0b0b5f;hp=e97dc0929678dfec9266d12e02e7ddf3c29bb797;hpb=9e1f0a85c68323830ea117092c55192b17aa3ac8;p=git.git diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index e97dc0929..fad983e29 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -9,12 +9,13 @@ git-remote - manage set of tracked repositories SYNOPSIS -------- [verse] -'git-remote' -'git-remote' add [-t ] [-m ] [-f] [--mirror] -'git-remote' rm -'git-remote' show -'git-remote' prune -'git-remote' update [group] +'git remote' [-v | --verbose] +'git remote add' [-t ] [-m ] [-f] [--mirror] +'git remote rename' +'git remote rm' +'git remote show' [-n] +'git remote prune' [-n | --dry-run] +'git remote update' [group] DESCRIPTION ----------- @@ -22,6 +23,14 @@ DESCRIPTION Manage the set of repositories ("remotes") whose branches you track. +OPTIONS +------- + +-v:: +--verbose:: + Be a little more verbose and show remote url after name. + + COMMANDS -------- @@ -53,6 +62,15 @@ only makes sense in bare repositories. If a remote uses mirror mode, furthermore, `git push` will always behave as if `\--mirror` was passed. +'rename':: + +Rename the remote named to . All remote tracking branches and +configuration settings for the remote are updated. ++ +In case and are the same, and is a file under +`$GIT_DIR/remotes` or `$GIT_DIR/branches`, the remote is converted to +the configuration file format. + 'rm':: Remove the remote named . All remote tracking branches and @@ -72,9 +90,8 @@ These stale branches have already been removed from the remote repository referenced by , but are still locally available in "remotes/". + -With `-n` option, the remote heads are not confirmed first with `git -ls-remote `; cached information is used instead. Use with -caution. +With `--dry-run` option, report what branches will be pruned, but do no +actually prune them. 'update':: @@ -117,7 +134,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