Documentation / git-fetch-pack.txton commit Merge branch 'fixes' (f51248e)
   1git-fetch-pack(1)
   2=================
   3
   4NAME
   5----
   6git-fetch-pack - Receive missing objects from another repository.
   7
   8
   9SYNOPSIS
  10--------
  11git-fetch-pack [-q] [--exec=<git-upload-pack>] [<host>:]<directory> [<refs>...]
  12
  13DESCRIPTION
  14-----------
  15Invokes 'git-upload-pack' on a potentially remote repository,
  16and asks it to send objects missing from this repository, to
  17update the named heads.  The list of commits available locally
  18is found out by scanning local $GIT_DIR/refs/ and sent to
  19'git-upload-pack' running on the other end.
  20
  21This command degenerates to download everything to complete the
  22asked refs from the remote side when the local side does not
  23have a common ancestor commit.
  24
  25
  26OPTIONS
  27-------
  28-q::
  29        Pass '-q' flag to 'git-unpack-objects'; this makes the
  30        cloning process less verbose.
  31
  32--exec=<git-upload-pack>::
  33        Use this to specify the path to 'git-upload-pack' on the
  34        remote side, if is not found on your $PATH.
  35        Installations of sshd ignores the user's environment
  36        setup scripts for login shells (e.g. .bash_profile) and
  37        your privately installed git may not be found on the system
  38        default $PATH.  Another workaround suggested is to set
  39        up your $PATH in ".bashrc", but this flag is for people
  40        who do not want to pay the overhead for non-interactive
  41        shells by having a lean .bashrc file (they set most of
  42        the things up in .bash_profile).
  43
  44<host>::
  45        A remote host that houses the repository.  When this
  46        part is specified, 'git-upload-pack' is invoked via
  47        ssh.
  48
  49<directory>::
  50        The repository to sync from.
  51
  52<refs>...::
  53        The remote heads to update from. This is relative to
  54        $GIT_DIR (e.g. "HEAD", "refs/heads/master").  When
  55        unspecified, update from all heads the remote side has.
  56
  57
  58Author
  59------
  60Written by Linus Torvalds <torvalds@osdl.org>
  61
  62Documentation
  63--------------
  64Documentation by Junio C Hamano.
  65
  66GIT
  67---
  68Part of the gitlink:git[7] suite