git-svn: write the highest maxRex out for branches and tags
[git/dscho.git] / Documentation / git-remote.txt
blob250761f97ed9b43cf6cec9fb36e835ed80327cd5
1 git-remote(1)
2 ============
4 NAME
5 ----
6 git-remote - manage set of tracked repositories
9 SYNOPSIS
10 --------
11 [verse]
12 'git-remote'
13 'git-remote' add <name> <url>
14 'git-remote' show <name>
15 'git-remote' prune <name>
16 'git-remote' update [group]
18 DESCRIPTION
19 -----------
21 Manage the set of repositories ("remotes") whose branches you track.
24 COMMANDS
25 --------
27 With no arguments, shows a list of existing remotes.  Several
28 subcommands are available to perform operations on the remotes.
30 'add'::
32 Adds a remote named <name> for the repository at
33 <url>.  The command `git fetch <name>` can then be used to create and
34 update remote-tracking branches <name>/<branch>.
36 'show'::
38 Gives some information about the remote <name>.
40 'prune'::
42 Deletes all stale tracking branches under <name>.
43 These stale branches have already been removed from the remote repository
44 referenced by <name>, but are still locally available in
45 "remotes/<name>".
47 'update'::
49 Fetch updates for a named set of remotes in the repository as defined by
50 remotes.<group>.  If a named group is not specified on the command line,
51 the configuration parameter remotes.default will get used; if
52 remotes.default is not defined, all remotes which do not the
53 configuration parameter remote.<name>.skipDefaultUpdate set to true will
54 be updated.  (See gitlink:git-config[1]).
57 DISCUSSION
58 ----------
60 The remote configuration is achieved using the `remote.origin.url` and
61 `remote.origin.fetch` configuration variables.  (See
62 gitlink:git-config[1]).
64 Examples
65 --------
67 Add a new remote, fetch, and check out a branch from it:
69 ------------
70 $ git remote
71 origin
72 $ git branch -r
73 origin/master
74 $ git remote add linux-nfs git://linux-nfs.org/pub/nfs-2.6.git
75 $ git remote
76 linux-nfs
77 origin
78 $ git fetch
79 * refs/remotes/linux-nfs/master: storing branch 'master' ...
80   commit: bf81b46
81 $ git branch -r
82 origin/master
83 linux-nfs/master
84 $ git checkout -b nfs linux-nfs/master
85 ...
86 ------------
88 See Also
89 --------
90 gitlink:git-fetch[1]
91 gitlink:git-branch[1]
92 gitlink:git-config[1]
94 Author
95 ------
96 Written by Junio Hamano
99 Documentation
100 --------------
101 Documentation by J. Bruce Fields and the git-list <git@vger.kernel.org>.
106 Part of the gitlink:git[7] suite