git status

See what changed in the folder and what is already staged

What it does

git status is the first thing to run when you are not sure what is going on in a repository. It shows the current branch, files changed since the last commit, files already staged for the next commit, and new files git does not know about yet.

It changes nothing, so run it as often as you like. With -s the output is short: one line per file with a two-letter status, such as M for modified and ?? for untracked.

Syntax

git status
git status -s

Examples

Related commands

Practise · All commands