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 - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
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
-
-
-
-
-
-
-
-
(Locked)
Change the PowerShell command prompt1m 19s
-
(Locked)
Show the Git help files from the command prompt1m 24s
-
Commit to local: VS2m 52s
-
(Locked)
Push to remote: VS1m 16s
-
(Locked)
Commit and push: VS1m 16s
-
(Locked)
Undo changes3m 6s
-
(Locked)
Show history with Git log: PowerShell2m 19s
-
(Locked)
Show history in Team Explorer1m 53s
-
(Locked)
Compare differences: VS2m 21s
-
(Locked)
When to use revert or reset3m 3s
-
(Locked)
Rollback to prior commit with revert55s
-
(Locked)
Rollback a local repo with reset1m 46s
-
(Locked)
-
-
-
-
-