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.

Sync: VS

Sync: VS - Visual Studio Tutorial

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

Start my 1-month free trial

Sync: VS

- Whenever you have Commits and want to Push to remote, the first step should be a Pull. That way your local copy is up to date. Then, if there are no problems or conflicts, it's safe to Push to remote. To review the steps, change your local files, Commit to local, Pull from remote, fix conflicts if necessary, and Push. I want to talk about this Sync action in Visual Studio. It doesn't map directly to a single Git command. Sync is a combination of a Pull command followed by a Push command. It will first perform a Pull, and then, if there are no conflicts, it will then Push the current Branch. So it combines those actions I just mentioned, and it is meant as a quick way to get your current Branch into Sync with a remote Branch. So, for this demo, what I'll do is I'll have Terri make a change in Colors.txt, and save the changes. And then, she's going to Push those. On my side, I'll make some changes. I see I have a…

Contents