git diff

Git Diff

Show the changes for all the files that changed
git diff

Show the changes for a specific file(a.txt)
git diff a.txt

Normally diff show the lines that changed. However, we can use the --color-words flag to show highlight the exact text that was changed.
git diff --color-words a.txt
Cookbook Category: 

Add new comment