Documentation / git-remote.txton commit bash: Support git-bisect and its subcommands. (b2e69f6)
   1git-remote(1)
   2============
   3
   4NAME
   5----
   6git-remote - manage set of tracked repositories
   7
   8
   9SYNOPSIS
  10--------
  11[verse]
  12'git-remote'
  13'git-remote' add <name> <url>
  14'git-remote' show <name>
  15'git-remote' prune <name>
  16
  17DESCRIPTION
  18-----------
  19
  20Manage the set of repositories ("remotes") whose branches you track.
  21
  22
  23COMMANDS
  24--------
  25
  26With no arguments, shows a list of existing remotes.  Several
  27subcommands are available to perform operations on the remotes.
  28
  29'add'::
  30
  31Adds a remote named <name> for the repository at
  32<url>.  The command `git fetch <name>` can then be used to create and
  33update remote-tracking branches <name>/<branch>.
  34
  35'show'::
  36
  37Gives some information about the remote <name>.
  38
  39'prune'::
  40
  41Deletes all stale tracking branches under <name>.
  42These stale branches have already been removed from the remote repository
  43referenced by <name>, but are still locally available in "remotes/<name>".
  44
  45
  46DISCUSSION
  47----------
  48
  49The remote configuration is achieved using the `remote.origin.url` and
  50`remote.origin.fetch` configuration variables.  (See
  51gitlink:git-config[1]).
  52
  53Examples
  54--------
  55
  56Add a new remote, fetch, and check out a branch from it:
  57
  58------------
  59$ git remote
  60origin
  61$ git branch -r
  62origin/master
  63$ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
  64$ git remote
  65linux-nfs
  66origin
  67$ git fetch
  68* refs/remotes/linux-nfs/master: storing branch 'master' ...
  69  commit: bf81b46
  70$ git branch -r
  71origin/master
  72linux-nfs/master
  73$ git checkout -b nfs linux-nfs/master
  74...
  75------------
  76
  77See Also
  78--------
  79gitlink:git-fetch[1]
  80gitlink:git-branch[1]
  81gitlink:git-config[1]
  82
  83Author
  84------
  85Written by Junio Hamano
  86
  87
  88Documentation
  89--------------
  90Documentation by J. Bruce Fields and the git-list <git@vger.kernel.org>.
  91
  92
  93GIT
  94---
  95Part of the gitlink:git[7] suite
  96