6 git-remote - manage set of tracked repositories
13 'git-remote' add <name> <url>
14 'git-remote' show <name>
15 'git-remote' prune <name>
20 Manage the set of repositories ("remotes") whose branches you track.
22 With no arguments, shows a list of existing remotes.
24 In the second form, adds a remote named <name> for the repository at
25 <url>. The command `git fetch <name>` can then be used to create and
26 update remote-tracking branches <name>/<branch>.
28 In the third form, gives some information about the remote <name>.
30 In the fourth form, deletes all stale tracking branches under <name>.
31 These stale branches have already been removed from the remote repository
32 referenced by <name>, but are still locally available in "remotes/<name>".
34 The remote configuration is achieved using the `remote.origin.url` and
35 `remote.origin.fetch` configuration variables. (See
36 gitlink:git-config[1]).
41 Add a new remote, fetch, and check out a branch from it:
48 $ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
53 * refs/remotes/linux-nfs/master: storing branch 'master' ...
58 $ git checkout -b nfs linux-nfs/master
70 Written by Junio Hamano
75 Documentation by J. Bruce Fields and the git-list <git@vger.kernel.org>.
80 Part of the gitlink:git[7] suite