View Staged and Unstaged Changes/Differences
- Best practice is to always review what you have in staging area before commit
- Changes in the old copy are indicated by - sign
- Changes in the new copy are indicated by + sign
- git will not show the entire file but only the changes
- git divide the file into chunks, every chunk has a header with info context
- segment with
-
sign shows details about old copy - segment with
+
sign shows details about new copy
Changes in Stage
git diff --staged
Changes in Working directory (Unstaged changes)
git diff