Git Diff - Explained

Published: 30 December 2021
on channel: A shot of code
18,139
398

In this Git tutorial we look at how to use Git Diff against a repository. Detailing the default action taken when we run Git Diff without any parameters and which files it will compare in this scenario and examining the output that it provides for both the old and new files. We also look at how to specify files to compare based on the Hash and the Git Tag. I mention that it can be used to compare files in different branches too.

0:00 Intro
0:16 Setup
1:00 Git Diff Default
1:15 Change File so we can compare difference
1:35 Git Diff Output
2:31 Git Diff Output minus and plus denoting
4:15 Multiple Changes to file so we can compare difference


Watch video Git Diff - Explained online without registration, duration hours minute second in high quality. This video was added by user A shot of code 30 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 18,13 once and liked it 39 people.