Comparing branches Git


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

Comparing branches

In this movie, we're going to talk about how we can compare branches. Now we saw in the last chapter, we talked about navigating the commit tree, so we could use the git diff command in order to compare two different tree-ish objects. And at the time, I told you that a branch was one of the tree-ish's that we can pass in, but we didn't have any branches back then. Now we have some branches so let's try comparing them. Use git diff, and then we just pass in the names of the branches. Let's remind ourselves that those branches are real quick. There is a list of our branches, and I'm on the shorten title branch, let's say git diff master..new_feature.

So I'm going to compare master with new feature by using that range operator in between, dot dot. So master compared to new_feature, and it comes up and tells me what are the differences between the tip of master and the tip of new_feature, the most recent commits there. That snapshot. So I now can ve...

Comparing branches
Video duration: 4m 28s 6h 25m Beginner

Viewers:

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