]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-fetch.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-fetch.txt
CommitLineData
215a7ad1
JH
1git-fetch(1)
2============
0c04094b
JH
3
4NAME
5----
c3f0baac 6git-fetch - Download objects and refs from another repository
0c04094b
JH
7
8
9SYNOPSIS
10--------
b1889c36 11'git fetch' <options> <repository> <refspec>...
0c04094b
JH
12
13
14DESCRIPTION
15-----------
ab9b3138
JH
16Fetches named heads or tags from another repository, along with
17the objects necessary to complete them.
18
19The ref names and their object names of fetched refs are stored
93d69d86 20in `.git/FETCH_HEAD`. This information is left for a later merge
b1889c36 21operation done by "git-merge".
0c04094b 22
02f571c7
JH
23When <refspec> stores the fetched result in tracking branches,
24the tags that point at these branches are automatically
25followed. This is done by first fetching from the remote using
26the given <refspec>s, and if the repository has objects that are
27pointed by remote tags that it does not yet have, then fetch
28those missing tags. If the other end has tags that point at
29branches you are not interested in, you will not get them.
30
0c04094b
JH
31
32OPTIONS
33-------
93d69d86 34include::fetch-options.txt[]
0c04094b 35
93d69d86 36include::pull-fetch-param.txt[]
d6a73596 37
37ba0561 38include::urls-remotes.txt[]
0c04094b 39
fdd08979
JH
40SEE ALSO
41--------
5162e697 42linkgit:git-pull[1]
fdd08979
JH
43
44
0c04094b
JH
45Author
46------
3f971fc4
JH
47Written by Linus Torvalds <torvalds@osdl.org> and
48Junio C Hamano <junkio@cox.net>
0c04094b
JH
49
50Documentation
df8baa42 51-------------
0c04094b
JH
52Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
53
54GIT
55---
9e1f0a85 56Part of the linkgit:git[1] suite