Git Fetch

satya - 10/24/2019, 11:03:57 AM

Git Fetch is documented here

Git Fetch is documented here

satya - 10/24/2019, 11:05:10 AM

It is good to fetch often as it does not affect local branches

It is good to fetch often as it does not affect local branches

satya - 10/24/2019, 11:06:52 AM

Briefly

Fetch branches and/or tags (collectively, "refs") from one or more other repositories, along with the objects necessary to complete their histories. Remote-tracking branches are updated (see the description of <refspec> below for ways to control this behavior).

satya - 10/24/2019, 11:07:53 AM

Some examples


git fetch origin

satya - 10/24/2019, 11:10:45 AM

In vscode in built git you can do this by


ctrl-shift-p: command palette
Search for fetch

//You will see
Git: fetch
Git: fetch from all remotes
Git: fetch (prune)
GitLens: fetch from repositories

satya - 10/24/2019, 11:11:31 AM

From GitGraph


//You will see an icon that says

Fetch from Remote(s)