git diff
to view differences between your unstaged changes and the last commit.--staged
option to view differences between your staged changes and the last commit instead.git diff [--staged]
git diff # Displays the differences between unstaged changes and the last commit git diff --staged # Displays the differences between staged changes and the last commit
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️