git status
Use git status to see what changed, what is staged, and what Git does not track yet.
What you will learn
- How to read common file states
- How to check changes before committing
Minimal example
git status; git diff; git diff --stagedThe first command summarizes the repository. The other two show unstaged and staged details.
Common mistakes
- Untracked files will not be included until you add them.
- Run status again after staging to confirm the intended files.