Git/fetch: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
misnomer
local manpage link
Line 7: Line 7:
==Links==
==Links==
===Documentation===
===Documentation===
* {{l/manpage|git-fetch|manpage @ HTYP}}
* [http://kernel.org/pub/software/scm/git/docs/git-fetch.html manpage @ kernel.org]
* [http://kernel.org/pub/software/scm/git/docs/git-fetch.html manpage @ kernel.org]

Revision as of 12:07, 31 October 2018

Action: "fetches" named heads or tags from one or more other repositories, along with the objects necessary to complete them.

"Fetch" is a bit of a misnomer, as it doesn't actually retrieve (download) any files but instead creates a "pointer" file (.git/FETCH_HEAD) to any items in need of retrieval. These can then be operated on by merge.

Examples

  • git fetch github master
    • where "github" is the name of the remote and "master" is the branch.

Documentation