Git Git Diff Show both staged and unstaged changes

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

To show all staged and unstaged changes, use:

git diff HEAD

NOTE: You can also use the following command:

git status -vv

The difference being that the output of the latter will actually tell you which changes are staged for commit and which are not.



Got any Git Question?