Documentation / git-remote.txton commit Documentation: Generate command lists. (72fe6a5)
   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
  16DESCRIPTION
  17-----------
  18
  19Manage the set of repositories ("remotes") whose branches you track.
  20
  21With no arguments, shows a list of existing remotes.
  22
  23In the second form, adds a remote named <name> for the repository at
  24<url>.  The command `git fetch <name>` can then be used to create and
  25update remote-tracking branches <name>/<branch>.
  26
  27In the third form, gives some information about the remote <name>.
  28
  29The remote configuration is achieved using the `remote.origin.url` and
  30`remote.origin.fetch` configuration variables.  (See
  31gitlink:git-repo-config[1]).
  32
  33Examples
  34--------
  35
  36Add a new remote, fetch, and check out a branch from it:
  37
  38------------
  39$ git remote
  40origin
  41$ git branch -r
  42origin/master
  43$ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
  44$ git remote
  45linux-nfs
  46origin
  47$ git fetch
  48* refs/remotes/linux-nfs/master: storing branch 'master' ...
  49  commit: bf81b46
  50$ git branch -r
  51origin/master
  52linux-nfs/master
  53$ git checkout -b nfs linux-nfs/master
  54...
  55------------
  56
  57See Also
  58--------
  59gitlink:git-fetch[1]
  60gitlink:git-branch[1]
  61gitlink:git-repo-config[1]
  62
  63Author
  64------
  65Written by Junio Hamano
  66
  67
  68Documentation
  69--------------
  70Documentation by J. Bruce Fields and the git-list <git@vger.kernel.org>.
  71
  72
  73GIT
  74---
  75Part of the gitlink:git[7] suite
  76