1git-fetch-pack(1)
2=================
34
NAME
5----
6git-fetch-pack - Receive missing objects from another repository
78
9
SYNOPSIS
10--------
11[verse]
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>...]
1314
DESCRIPTION
15-----------
16Usually you would want to use 'git fetch', which is a
17higher level wrapper of this command, instead.
1819
Invokes 'git-upload-pack' on a possibly remote repository
20and asks it to send objects missing from this repository, to
21update the named heads. The list of commits available locally
22is found out by scanning the local refs/ hierarchy and sent to
23'git-upload-pack' running on the other end.
2425
This 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.
2829
30
OPTIONS
31-------
32--all::
33Fetch all remote refs.
3435
-q::
36--quiet::
37Pass '-q' flag to 'git unpack-objects'; this makes the
38cloning process less verbose.
3940
-k::
41--keep::
42Do not invoke 'git unpack-objects' on received data, but
43create a single packfile out of it instead, and store it
44in the object database. If provided twice then the pack is
45locked against repacking.
4647
--thin::
48Fetch a "thin" pack, which records objects in deltified form based
49on objects not included in the pack to reduce network traffic.
5051
--include-tag::
52If the remote side supports it, annotated tags objects will
53be downloaded on the same connection as the other objects if
54the object the tag references is downloaded. The caller must
55otherwise determine the tags this option made available.
5657
--upload-pack=<git-upload-pack>::
58Use this to specify the path to 'git-upload-pack' on the
59remote side, if is not found on your $PATH.
60Installations of sshd ignores the user's environment
61setup scripts for login shells (e.g. .bash_profile) and
62your privately installed git may not be found on the system
63default $PATH. Another workaround suggested is to set
64up your $PATH in ".bashrc", but this flag is for people
65who do not want to pay the overhead for non-interactive
66shells by having a lean .bashrc file (they set most of
67the things up in .bash_profile).
6869
--exec=<git-upload-pack>::
70Same as \--upload-pack=<git-upload-pack>.
7172
--depth=<n>::
73Limit fetching to ancestor-chains not longer than n.
7475
--no-progress::
76Do not show the progress.
7778
-v::
79Run verbosely.
8081
<host>::
82A remote host that houses the repository. When this
83part is specified, 'git-upload-pack' is invoked via
84ssh.
8586
<directory>::
87The repository to sync from.
8889
<refs>...::
90The remote heads to update from. This is relative to
91$GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
92unspecified, update from all heads the remote side has.
9394
GIT
95---
96Part of the linkgit:git[1] suite