This video shows the difference between git diff and git diff --cached.
I use git add first_file.txt to tell git that I want to commit that file. It is in what git calls the “staging” area. To show changes to file in the staging area, you must use git diff --cached.
If you want to see how files that are not in the staging area have changed, you use git diff