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.

Commit and push: VS

Commit and push: VS - Visual Studio Tutorial

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

Start my 1-month free trial

Commit and push: VS

- [Instructor] Let's look at how to commit and push at the same time. I'll change two files, I'll modify this StopNumber here in my TourStops file to three and I'll save those changes, just save that one file. Then I'll go over to this TourStop class and I'll change BusyTime to BusyTimes, so I'll change it here and here. And then I will go to Team Explorer, go to Home, go to Changes and I see that there's two files listed, and there's an asterisk here signifying that I haven't saved the changes in this file yet. So I'll go up here and choose Save All. Now I've got my two files ready to save, I type in my message, and instead of choosing Commit All, I'll open this drop-down and choose the second option, Commit All and Push. You see my outgoing commits, those outgoing commits disappear, that's in the Synchronization screen, so you notice that Visual Studio switched me over to the Synchronization window. And then when I…

Contents