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.

Pull and push

Pull and push - Visual Studio Tutorial

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

Start my 1-month free trial

Pull and push

- [Instructor] I'm in my copy of Visual Studio and I'm looking at Team Explorer and I see some leftover information from the last video I used this computer. And remember I was doing a reset operation then. And I can see that the commit was created locally and I need to do a sync. So at this point, I'll click here to sync. I have this outgoing commit so I will go ahead and push that. And I get an error. What's going on here? It says the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. So here's what's happened. Terry has pushed something to the remote. I had it changed locally and I hadn't pushed it to remote so now I need to pull the changes into mine to see if there's any conflicts. So I can do that by going here and choosing pull. Says the repository was updated. The merge commit was created. I will now try to push my changes. And I have…

Contents