git status

The Git command that reports what is staged, what is changed but not staged, and what is untracked.

In more detail

Changes to be committed are in the staging area, changes not staged for commit are in the working tree only, and untracked files are in neither. --short prints two columns per file: the left one for the staging area and the right one for the working tree, so an M in both columns means the file was staged and then modified again. --branch adds the current branch and how far it is ahead of or behind its upstream.

Example

git status --short --branch

Related terms

Taught in

References