Command Reference

git status Tutorial

Covers how git status shows working tree, staging area, and branch state, and why it should be part of nearly every Git workflow.

The short version

git status is the safest and most useful command for checking what is going on in your repository right now.

What it tells you

  • current branch
  • staged changes
  • unstaged changes
  • untracked files
  • ahead / behind state relative to the upstream branch

Common forms

git status
git status --short