From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use Fetch or Pull to sync with remote

Use Fetch or Pull to sync with remote - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Use Fetch or Pull to sync with remote

- Now let's look at it from Terry's perspective. In the Team Explorer, she can go to Sync, and there are three operations in here. There's Sync and Fetch and Pull. Now, she has no outgoing commits, so we don't have to worry about any conflicts. But she might want to be up to date with what I have done on my side of the project, so she can go up here and choose Fetch or Pull. The difference between fetch and pull remember is fetch brings the information over from the remote but it doesn't touch any of the files here, and pull brings the information over and attempts to merge it in to her account. Let's do a fetch. You can see, she now gets a listing of all the things that have changed. She can examine it, decide whether she wants to pull those into her account, and if so, then she goes up here and does Pull. And now the repository is updated.

Contents