]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-fetch.txt
Do not feed rev-list an invalid SHA1 expression.
[thirdparty/git.git] / Documentation / git-fetch.txt
CommitLineData
215a7ad1
JH
1git-fetch(1)
2============
0c04094b
JH
3
4NAME
5----
215a7ad1 6git-fetch - Download objects and a head from another repository.
0c04094b
JH
7
8
9SYNOPSIS
10--------
215a7ad1 11'git-fetch' <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
20in $GIT_DIR/FETCH_HEAD. This information is left for a later merge
21operation done by "git resolve" or "git octopus".
0c04094b
JH
22
23
24OPTIONS
25-------
26include::pull-fetch-param.txt[]
27
61420a2c
SV
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
0c04094b
JH
34
35Author
36------
3f971fc4
JH
37Written by Linus Torvalds <torvalds@osdl.org> and
38Junio C Hamano <junkio@cox.net>
0c04094b
JH
39
40Documentation
df8baa42 41-------------
0c04094b
JH
42Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
43
44GIT
45---
a7154e91 46Part of the gitlink:git[7] suite