git status
Displays the state of the working directory and the staging area.
Syntax
git status [-s] [-b]
Options
- -s / --short: Gives output in short format
- -b / --branch: Shows the branch and tracking info in short format
- --porcelain: Gives machine-readable output
- -u / --untracked-files[=<mode>]: Shows untracked files (no, normal, all)
Example
git status git status -s git status --short --branch