Merge branch 'fixes'
[git.git] / Documentation / git-fetch.txt
1 git-fetch(1)
2 ============
3
4 NAME
5 ----
6 git-fetch - Download objects and a head from another repository.
7
8
9 SYNOPSIS
10 --------
11 'git-fetch' <repository> <refspec>...
12
13
14 DESCRIPTION
15 -----------
16 Fetches named heads or tags from another repository, along with
17 the objects necessary to complete them.
18
19 The ref names and their object names of fetched refs are stored
20 in $GIT_DIR/FETCH_HEAD.  This information is left for a later merge
21 operation done by "git resolve" or "git octopus".
22
23
24 OPTIONS
25 -------
26 include::pull-fetch-param.txt[]
27
28 -u, \--update-head-ok::
29         By default 'git-fetch' refuses to update the head which
30         corresponds to the current branch.  This flag disables the
31         check.  Note that fetching into the current branch will not
32         update the index and working directory, so use it with care.
33
34
35 Author
36 ------
37 Written by Linus Torvalds <torvalds@osdl.org> and
38 Junio C Hamano <junkio@cox.net>
39
40 Documentation
41 -------------
42 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
43
44 GIT
45 ---
46 Part of the gitlink:git[7] suite