]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-fetch-pack.txt
string_list: add a new function, filter_string_list()
[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--------
7791a1d9 11[verse]
b1889c36 12'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
13
14DESCRIPTION
15-----------
0b444cdb 16Usually you would want to use 'git fetch', which is a
483bc4f0 17higher level wrapper of this command, instead.
5cb545fa 18
ba020ef5 19Invokes 'git-upload-pack' on a possibly remote repository
8b3d9dc0
JH
20and asks it to send objects missing from this repository, to
21update the named heads. The list of commits available locally
cc1b8d8b 22is found out by scanning the local refs/ hierarchy and sent to
ba020ef5 23'git-upload-pack' running on the other end.
8b3d9dc0 24
33b83034
JH
25This command degenerates to download everything to complete the
26asked refs from the remote side when the local side does not
27have a common ancestor commit.
8b3d9dc0
JH
28
29
30OPTIONS
31-------
3240240f 32--all::
18bd8821
UKK
33 Fetch all remote refs.
34
078b895f
IT
35--stdin::
36 Take the list of refs from stdin, one per line. If there
37 are refs specified on the command line in addition to this
38 option, then the refs from stdin are processed after those
39 on the command line.
40+
41If '--stateless-rpc' is specified together with this option then
42the list of refs must be in packet format (pkt-line). Each ref must
43be in a separate packet, and the list must end with a flush packet.
44
3240240f
SB
45-q::
46--quiet::
0b444cdb 47 Pass '-q' flag to 'git unpack-objects'; this makes the
8b3d9dc0
JH
48 cloning process less verbose.
49
3240240f
SB
50-k::
51--keep::
0b444cdb 52 Do not invoke 'git unpack-objects' on received data, but
ad897215 53 create a single packfile out of it instead, and store it
da093d37
NP
54 in the object database. If provided twice then the pack is
55 locked against repacking.
ad897215 56
3240240f 57--thin::
738820a9
SB
58 Fetch a "thin" pack, which records objects in deltified form based
59 on objects not included in the pack to reduce network traffic.
18bd8821 60
3240240f 61--include-tag::
348e390b
SP
62 If the remote side supports it, annotated tags objects will
63 be downloaded on the same connection as the other objects if
64 the object the tag references is downloaded. The caller must
65 otherwise determine the tags this option made available.
66
3240240f 67--upload-pack=<git-upload-pack>::
ba020ef5 68 Use this to specify the path to 'git-upload-pack' on the
8b3d9dc0
JH
69 remote side, if is not found on your $PATH.
70 Installations of sshd ignores the user's environment
71 setup scripts for login shells (e.g. .bash_profile) and
72e9340c 72 your privately installed git may not be found on the system
8b3d9dc0
JH
73 default $PATH. Another workaround suggested is to set
74 up your $PATH in ".bashrc", but this flag is for people
75 who do not want to pay the overhead for non-interactive
76 shells by having a lean .bashrc file (they set most of
77 the things up in .bash_profile).
78
3240240f 79--exec=<git-upload-pack>::
27dca07f
UKK
80 Same as \--upload-pack=<git-upload-pack>.
81
3240240f 82--depth=<n>::
18bd8821
UKK
83 Limit fetching to ancestor-chains not longer than n.
84
3240240f 85--no-progress::
83a5ad61
JS
86 Do not show the progress.
87
3240240f 88-v::
18bd8821
UKK
89 Run verbosely.
90
8b3d9dc0
JH
91<host>::
92 A remote host that houses the repository. When this
ba020ef5 93 part is specified, 'git-upload-pack' is invoked via
8b3d9dc0
JH
94 ssh.
95
96<directory>::
97 The repository to sync from.
98
33b83034 99<refs>...::
8b3d9dc0
JH
100 The remote heads to update from. This is relative to
101 $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
102 unspecified, update from all heads the remote side has.
103
8b3d9dc0
JH
104GIT
105---
9e1f0a85 106Part of the linkgit:git[1] suite