macOS ◆ screen-256color ◆ zsh 159 views

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

More by magikid

HelloWorldTake2 00:22

by magikid

untitled 00:10

by magikid

untitled 00:13

by magikid

untitled 00:37

by magikid

See all