Documentation / fetch-options.txton commit Merge branch 'js/diff-verbose-submodule' (d39d667)
   1-a::
   2--append::
   3        Append ref names and object names of fetched refs to the
   4        existing contents of `.git/FETCH_HEAD`.  Without this
   5        option old data in `.git/FETCH_HEAD` will be overwritten.
   6
   7--depth=<depth>::
   8        Deepen the history of a 'shallow' repository created by
   9        `git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
  10        by the specified number of commits.
  11
  12-f::
  13--force::
  14        When 'git-fetch' is used with `<rbranch>:<lbranch>`
  15        refspec, it refuses to update the local branch
  16        `<lbranch>` unless the remote branch `<rbranch>` it
  17        fetches is a descendant of `<lbranch>`.  This option
  18        overrides that check.
  19
  20-k::
  21--keep::
  22        Keep downloaded pack.
  23
  24ifdef::git-pull[]
  25--no-tags::
  26endif::git-pull[]
  27ifndef::git-pull[]
  28-n::
  29--no-tags::
  30endif::git-pull[]
  31        By default, tags that point at objects that are downloaded
  32        from the remote repository are fetched and stored locally.
  33        This option disables this automatic tag following.
  34
  35-t::
  36--tags::
  37        Most of the tags are fetched automatically as branch
  38        heads are downloaded, but tags that do not point at
  39        objects reachable from the branch heads that are being
  40        tracked will not be fetched by this mechanism.  This
  41        flag lets all tags and their associated objects be
  42        downloaded.
  43
  44-u::
  45--update-head-ok::
  46        By default 'git-fetch' refuses to update the head which
  47        corresponds to the current branch.  This flag disables the
  48        check.  This is purely for the internal use for 'git-pull'
  49        to communicate with 'git-fetch', and unless you are
  50        implementing your own Porcelain you are not supposed to
  51        use it.
  52
  53--upload-pack <upload-pack>::
  54        When given, and the repository to fetch from is handled
  55        by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
  56        the command to specify non-default path for the command
  57        run on the other end.
  58
  59ifndef::git-pull[]
  60-q::
  61--quiet::
  62        Pass --quiet to git-fetch-pack and silence any other internally
  63        used git commands.
  64
  65-v::
  66--verbose::
  67        Be verbose.
  68endif::git-pull[]