Git Status
Status
Section titled “Status”Purpose
Section titled “Purpose”Check the current state of your working tree, staged changes, and branch status.
Commands
Section titled “Commands”git status
- Show changed, staged, and untracked files
- Use before committing or switching branches
git status --short
- Show a compact two-column status view
- Use when you want a quick summary
git status --branch
- Show status plus branch and tracking information
- Use when checking whether your branch is ahead or behind the remote
git statusis safe and should be your first check before most Git operations