Git

Git: git status --short --branch — Linux

Show concise working-tree and branch status.

Availability: Tool and version dependent; install separately where required.中文

Syntax

git status --short --branch

Examples

Show concise working-tree and branch status.

git status --short --branch

Parameters, options and clauses

Option / clauseDescription
--shortUse the compact status format.
--branchShow branch and tracking information in short output.
--porcelain[=<version>]Use a stable format intended for scripts.
--ignoredInclude ignored files in the status report.
Safety note

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.

Official reference ↗Back to directory