Difference between revisions of "Git/fetch"
< Git
Jump to navigation
Jump to search
(Created page with "'''Action''': fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. ==Links== ===Documentation=== * '''[http://ke...") |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | '''Action''': fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. | + | {{fmt/title|git fetch}} |
+ | '''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 {{l/same|merge}}. | ||
+ | ==Examples== | ||
+ | * <code>git fetch github master</code> | ||
+ | ** where "github" is the name of the {{l/same|remote}} and "master" is the {{l/same|branch}}. | ||
==Links== | ==Links== | ||
===Documentation=== | ===Documentation=== | ||
− | * | + | * {{l/manpage|git-fetch|manpage @ HTYP}} |
+ | * [http://kernel.org/pub/software/scm/git/docs/git-fetch.html manpage @ kernel.org] |
Latest revision as of 23:50, 5 August 2022
git fetch
|
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.