Comparing commits Git


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

Comparing commits

In this movie we're going to learn how to compare two different commits. Now when I say compare commits, we're not actually comparing the commit snapshot, just those changes that were made that are stored with that commit. We're comparing the directory that that commit references; the actual state of all the files in the repository at that point in time. And that makes sense because a commit is not just a snapshot of those changes, but it includes all of the ancestors all the way back to the beginning of the repository as well. And the sum total of all those ancestors is the directory, or tree, at that point in time where the commit is.

So when we compare commits what we're actually doing is comparing two directories and seeing what has changed between those two directories. Now it might be comparing what's changed over time. For example, I might be comparing a commit that I made on Monday morning with a commit that I made on Friday afternoon, and compari...

Comparing commits
Video duration: 6m 31s 6h 25m Beginner

Viewers:

Comparing commits 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 ...