]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-fetch-pack.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-fetch-pack.txt
CommitLineData
8b3d9dc0
JH
1git-fetch-pack(1)
2=================
8b3d9dc0
JH
3
4NAME
5----
7bd7f280 6git-fetch-pack - Receive missing objects from another repository
8b3d9dc0
JH
7
8
9SYNOPSIS
10--------
b1889c36 11'git fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...]
8b3d9dc0
JH
12
13DESCRIPTION
14-----------
5162e697 15Usually you would want to use linkgit:git-fetch[1] which is a
5cb545fa
JH
16higher level wrapper of this command instead.
17
8b3d9dc0
JH
18Invokes 'git-upload-pack' on a potentially remote repository,
19and asks it to send objects missing from this repository, to
20update the named heads. The list of commits available locally
33b83034
JH
21is found out by scanning local $GIT_DIR/refs/ and sent to
22'git-upload-pack' running on the other end.
8b3d9dc0 23
33b83034
JH
24This command degenerates to download everything to complete the
25asked refs from the remote side when the local side does not
26have a common ancestor commit.
8b3d9dc0
JH
27
28
29OPTIONS
30-------
3240240f 31--all::
18bd8821
UKK
32 Fetch all remote refs.
33
3240240f
SB
34-q::
35--quiet::
8b3d9dc0
JH
36 Pass '-q' flag to 'git-unpack-objects'; this makes the
37 cloning process less verbose.
38
3240240f
SB
39-k::
40--keep::
ad897215
JH
41 Do not invoke 'git-unpack-objects' on received data, but
42 create a single packfile out of it instead, and store it
da093d37
NP
43 in the object database. If provided twice then the pack is
44 locked against repacking.
ad897215 45
3240240f 46--thin::
18bd8821
UKK
47 Spend extra cycles to minimize the number of objects to be sent.
48 Use it on slower connection.
49
3240240f 50--include-tag::
348e390b
SP
51 If the remote side supports it, annotated tags objects will
52 be downloaded on the same connection as the other objects if
53 the object the tag references is downloaded. The caller must
54 otherwise determine the tags this option made available.
55
3240240f 56--upload-pack=<git-upload-pack>::
8b3d9dc0
JH
57 Use this to specify the path to 'git-upload-pack' on the
58 remote side, if is not found on your $PATH.
59 Installations of sshd ignores the user's environment
60 setup scripts for login shells (e.g. .bash_profile) and
72e9340c 61 your privately installed git may not be found on the system
8b3d9dc0
JH
62 default $PATH. Another workaround suggested is to set
63 up your $PATH in ".bashrc", but this flag is for people
64 who do not want to pay the overhead for non-interactive
65 shells by having a lean .bashrc file (they set most of
66 the things up in .bash_profile).
67
3240240f 68--exec=<git-upload-pack>::
27dca07f
UKK
69 Same as \--upload-pack=<git-upload-pack>.
70
3240240f 71--depth=<n>::
18bd8821
UKK
72 Limit fetching to ancestor-chains not longer than n.
73
3240240f 74--no-progress::
83a5ad61
JS
75 Do not show the progress.
76
3240240f 77-v::
18bd8821
UKK
78 Run verbosely.
79
8b3d9dc0
JH
80<host>::
81 A remote host that houses the repository. When this
82 part is specified, 'git-upload-pack' is invoked via
83 ssh.
84
85<directory>::
86 The repository to sync from.
87
33b83034 88<refs>...::
8b3d9dc0
JH
89 The remote heads to update from. This is relative to
90 $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
91 unspecified, update from all heads the remote side has.
92
8b3d9dc0
JH
93
94Author
95------
96Written by Linus Torvalds <torvalds@osdl.org>
97
98Documentation
99--------------
100Documentation by Junio C Hamano.
101
102GIT
103---
9e1f0a85 104Part of the linkgit:git[1] suite