LinuxCommandLibrary

git-status

Show the working tree status

TLDR

Show working tree status

$ git status
copy
Short format
$ git status -s
copy
Show branch info
$ git status -b
copy
Show ignored files
$ git status --ignored
copy
Porcelain format
$ git status --porcelain
copy
Show untracked files
$ git status -u
copy

SYNOPSIS

git status [options] [paths...]

DESCRIPTION

git status displays the state of the working tree and the staging area. It shows which changes have been staged, which are unstaged, and which files are untracked by Git.
The `--porcelain` format provides stable, machine-readable output suitable for scripting, while the default format is designed for human readability.

PARAMETERS

-s, --short

Short format output.
-b, --branch
Show branch info.
--porcelain
Machine-readable format.
-u, --untracked-files [mode]
Show untracked files.
--ignored
Show ignored files.
-v, --verbose
Show staged diff.
--ahead-behind
Show ahead/behind counts.

SEE ALSO

git-diff(1), git-add(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community