From the course: Visual Studio: Source Control with Git and GitHub
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Compare differences: VS - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
Compare differences: VS
- The diff tool is one of those utilities that you find on most programmers computers. We use it to compare two versions of a file to see what has changed. It won't surprise you to learn that visual studio has a built in difference tool. There's also a diff command available in git. I won't show you the one in power shell, because it's a very minimalistic comparison tool, or diff tool, I think it's much better to use a graphic tool where you can show two copies of the files in separate windows, or separate panes of a window, and you can compare them line by line next to each other. Let's take a look at how to do that. Right now we're looking at Terry's commit. And remember, the way that you show the commit is by right clicking, and choose view commit details. Then you can see over here these are the files that's changed. Now I can right click on this and choose open, and that just opens the file. So I can't see…
Contents
-
-
-
-
-
-
-
-
Change the PowerShell command prompt1m 19s
-
Show the Git help files from the command prompt1m 24s
-
Commit to local: VS2m 52s
-
Push to remote: VS1m 16s
-
Commit and push: VS1m 16s
-
Undo changes3m 6s
-
Show history with Git log: PowerShell2m 19s
-
Show history in Team Explorer1m 53s
-
Compare differences: VS2m 21s
-
When to use revert or reset3m 3s
-
Rollback to prior commit with revert55s
-
Rollback a local repo with reset1m 46s
-
-
-
-
-
-