1git-fetch-pack(1)
2=================
34
NAME
5----
6git-fetch-pack - Receive missing objects from another repository
78
9
SYNOPSIS
10--------
11'git-fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--exec=<git-upload-pack>] [--depth=<n>] [-v] [<host>:]<directory> [<refs>...]
1213
DESCRIPTION
14-----------
15Usually you would want to use gitlink:git-fetch[1] which is a
16higher level wrapper of this command instead.
1718
Invokes '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
21is found out by scanning local $GIT_DIR/refs/ and sent to
22'git-upload-pack' running on the other end.
2324
This 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.
2728
29
OPTIONS
30-------
31\--all::
32Fetch all remote refs.
3334
\--quiet, \-q::
35Pass '-q' flag to 'git-unpack-objects'; this makes the
36cloning process less verbose.
3738
\--keep, \-k::
39Do not invoke 'git-unpack-objects' on received data, but
40create a single packfile out of it instead, and store it
41in the object database. If provided twice then the pack is
42locked against repacking.
4344
\--thin::
45Spend extra cycles to minimize the number of objects to be sent.
46Use it on slower connection.
4748
\--exec=<git-upload-pack>::
49Use this to specify the path to 'git-upload-pack' on the
50remote side, if is not found on your $PATH.
51Installations of sshd ignores the user's environment
52setup scripts for login shells (e.g. .bash_profile) and
53your privately installed git may not be found on the system
54default $PATH. Another workaround suggested is to set
55up your $PATH in ".bashrc", but this flag is for people
56who do not want to pay the overhead for non-interactive
57shells by having a lean .bashrc file (they set most of
58the things up in .bash_profile).
5960
\--depth=<n>::
61Limit fetching to ancestor-chains not longer than n.
6263
\-v::
64Run verbosely.
6566
<host>::
67A remote host that houses the repository. When this
68part is specified, 'git-upload-pack' is invoked via
69ssh.
7071
<directory>::
72The repository to sync from.
7374
<refs>...::
75The remote heads to update from. This is relative to
76$GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
77unspecified, update from all heads the remote side has.
7879
80
Author
81------
82Written by Linus Torvalds <torvalds@osdl.org>
8384
Documentation
85--------------
86Documentation by Junio C Hamano.
8788
GIT
89---
90Part of the gitlink:git[7] suite