Difference between revisions of "Git/fetch"
< Git
		
		
		
		Jump to navigation
		Jump to search
		|  (example) |  (misnomer) | ||
| Line 1: | Line 1: | ||
| − | '''Action''': fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. | + | '''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== | ==Examples== | ||
| * <code>git fetch github master</code> | * <code>git fetch github master</code> | ||
Revision as of 20:47, 9 March 2015
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.