When working on a codebase with a lot of unstaged or untracked changes, the default git status output is unhelpful.

The following snippet reorders the git status output. Added, modified, and deleted files appear at the bottom, right above the command prompt.

git status --short | sort --ignore-leading-blanks --ignore-case
git status -s | sort -bf

If you’re not interested in untracked files, add the --untracked-files=no flag.

git status --short --untracked-files=no \
  | sort --ignore-leading-blanks --ignore-case

git status -suno | sort -bf