Check branch and working-tree state.
git status --short --branchCheck branch and working-tree state.
git status --short --branchCheck branch and working-tree state.
git status --short --branch| Option / clause | Description |
|---|---|
--short | Use the compact status format. |
--branch | Show branch and tracking information. |
--porcelain[=<version>] | Use a stable status format for scripts. |
--ignored | Include ignored files. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.