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