Documentation / git-fetch.txton commit Restore chdir(".git") (47888f0)
   1git-fetch(1)
   2============
   3v0.99.5, Aug 2005
   4
   5NAME
   6----
   7git-fetch - Download objects and a head from another repository.
   8
   9
  10SYNOPSIS
  11--------
  12'git-fetch' <repository> <refspec>...
  13
  14
  15DESCRIPTION
  16-----------
  17Fetches named heads or tags from another repository, along with
  18the objects necessary to complete them.
  19
  20The ref names and their object names of fetched refs are stored
  21in $GIT_DIR/FETCH_HEAD.  This information is left for a later merge
  22operation done by "git resolve" or "git octopus".
  23
  24
  25OPTIONS
  26-------
  27include::pull-fetch-param.txt[]
  28
  29-u, \--update-head-ok::
  30        By default 'git-fetch' refuses to update the head which
  31        corresponds to the current branch.  This flag disables the
  32        check.  Note that fetching into the current branch will not
  33        update the index and working directory, so use it with care.
  34
  35
  36Author
  37------
  38Written by Linus Torvalds <torvalds@osdl.org> and
  39Junio C Hamano <junkio@cox.net>
  40
  41Documentation
  42--------------
  43Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
  44
  45GIT
  46---
  47Part of the gitlink:git[7] suite