From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Git operations demonstration: Git diff, branch, and merge

Git operations demonstration: Git diff, branch, and merge

From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Start my 1-month free trial

Git operations demonstration: Git diff, branch, and merge

- [Narrator] So next let's see how we can look at differences between two commits. So if we go back to our terminal window or do a git log, we can see there's three operations. What if I want to see the differences between the first and the second? So the way to do that is to git dif and then, ah, comparing the two. And now it shows the differences. What if I want to see all the changes between here, the first one, and to this third one? If I do a git diff or I just do arrow up because I know that first one was, uh, the first one, now I can just look at the second. And now I could see that it is deleting the file and all the differences. Let's see how we can create a branch. So remember when we did git status before, we have this message on, on branch master. If you imagine git as a tree, that you could have different branches, leaves and so on. So now, let's create a branch. Typically, this is done…

Contents