Hello. Today we are going to look at git diff command in detail.
Here are the list of git diff commands covered in this video.
1. git diff
2. git diff --staged
3. git diff HEAD
BONUS
4. git ls-files --stage
5. git cat-file -t
6. git cat-file -p
What makes git diff commands useful? Good question. Their core use cases are comparing files from the local directory to index or to local repository.
Git diff commands show the lines of text that the files differ from each other.
Thanks!