View changes with diff Git


show more Viewing changes with diff provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Viewing changes with diff

In the last movie we saw how we could edit files and commit those to the repository. In this movie I'd like us to take a look at how we can see what changes have been made before we make a decision about whether to commit those to the repository. Before we begin that, let's make some edits. So let's open up our first_file.txt, and this is the first file added to my project, and I'm going to say space, it comes before all other files. Hit Return. I'll save the whole thing, close it up. Now, we know what's going to happen if we do git status, it's going to tell us that the file was modified, right? What we want to do now though is find out what were those modifications.

This is very useful, especially if we've been working for a couple of hours, we've been making lots of changes to lots of files in our project, and maybe we were a little surprised even to see that the file popped up here in the modified list, we don't remember making a change to that file. How c...

Viewing changes with diff
Video duration: 3m 35s 6h 25m Beginner

Viewers:

Viewing changes with diff provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...