1GIT-FETCH-PACK(1)                 Git Manual                 GIT-FETCH-PACK(1)
2
3
4

NAME

6       git-fetch-pack - Receive missing objects from another repository
7

SYNOPSIS

9       git-fetch-pack [--all] [--quiet|-q] [--keep|-k] [--thin]
10       [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v]
11       [<host>:]<directory> [<refs>...]
12

DESCRIPTION

14       Usually you would want to use git-fetch(1) which is a higher level
15       wrapper of this command instead.
16
17       Invokes git-upload-pack on a potentially remote repository, and asks it
18       to send objects missing from this repository, to update the named
19       heads. The list of commits available locally is found out by scanning
20       local $GIT_DIR/refs/ and sent to git-upload-pack running on the other
21       end.
22
23       This command degenerates to download everything to complete the asked
24       refs from the remote side when the local side does not have a common
25       ancestor commit.
26

OPTIONS

28       --all
29           Fetch all remote refs.
30
31       --quiet, \-q
32           Pass -q flag to git-unpack-objects; this makes the cloning process
33           less verbose.
34
35       --keep, \-k
36           Do not invoke git-unpack-objects on received data, but create a
37           single packfile out of it instead, and store it in the object
38           database. If provided twice then the pack is locked against
39           repacking.
40
41       --thin
42           Spend extra cycles to minimize the number of objects to be sent.
43           Use it on slower connection.
44
45       --upload-pack=<git-upload-pack>
46           Use this to specify the path to git-upload-pack on the remote side,
47           if is not found on your $PATH. Installations of sshd ignores the
48           userĀ“s environment setup scripts for login shells (e.g.
49           .bash_profile) and your privately installed git may not be found on
50           the system default $PATH. Another workaround suggested is to set up
51           your $PATH in ".bashrc", but this flag is for people who do not
52           want to pay the overhead for non-interactive shells by having a
53           lean .bashrc file (they set most of the things up in
54           .bash_profile).
55
56       --exec=<git-upload-pack>
57           Same as --upload-pack=<git-upload-pack>.
58
59       --depth=<n>
60           Limit fetching to ancestor-chains not longer than n.
61
62       --no-progress
63           Do not show the progress.
64
65       \-v
66           Run verbosely.
67
68       <host>
69           A remote host that houses the repository. When this part is
70           specified, git-upload-pack is invoked via ssh.
71
72       <directory>
73           The repository to sync from.
74
75       <refs>...
76           The remote heads to update from. This is relative to $GIT_DIR (e.g.
77           "HEAD", "refs/heads/master"). When unspecified, update from all
78           heads the remote side has.
79

AUTHOR

81       Written by Linus Torvalds <torvalds@osdl.org>
82

DOCUMENTATION

84       Documentation by Junio C Hamano.
85

GIT

87       Part of the git(7) suite
88
89
90
91
92Git 1.5.3.3                       10/09/2007                 GIT-FETCH-PACK(1)
Impressum