]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-pull.txt
Documentation: git-add -- do not say "cache", add examples.
[thirdparty/git.git] / Documentation / git-pull.txt
CommitLineData
215a7ad1
JH
1git-pull(1)
2===========
2cf565c5
DG
3
4NAME
5----
215a7ad1 6git-pull - Pull and merge from another repository.
2cf565c5
DG
7
8
9SYNOPSIS
10--------
215a7ad1 11'git-pull' <repository> <refspec>...
0c04094b 12
2cf565c5
DG
13
14DESCRIPTION
15-----------
215a7ad1 16Runs 'git-fetch' with the given parameters.
ab9b3138
JH
17
18When only one ref is downloaded, runs 'git resolve' to merge it
19into the local HEAD. Otherwise uses 'git octopus' to merge them
20into the local HEAD.
0c04094b 21
710c97db
JH
22Note that you can use '.' (current directory) as the
23<repository> to pull from the local repository -- this is useful
24when merging local branches into the current branch.
0c04094b
JH
25
26OPTIONS
27-------
28include::pull-fetch-param.txt[]
2cf565c5 29
d6a73596
JH
30-a, \--append::
31 Append ref names and object names of fetched refs to the
32 existing contents of $GIT_DIR/FETCH_HEAD. Without this
33 option old data in $GIT_DIR/FETCH_HEAD will be overwritten.
2cf565c5
DG
34
35Author
36------
3f971fc4
JH
37Written by Linus Torvalds <torvalds@osdl.org>
38and Junio C Hamano <junkio@cox.net>
2cf565c5
DG
39
40Documentation
41--------------
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
2cf565c5 47