skip to content
Alvin Lucillo

Show short, branch-aware status

/ 1 min read

If you just need a simple way to show your repo state, use git status -sb. It’s useful if you want a brief status as opposed to the verbose git status. In this short command, you’ll be able to see your local and remote branches, files you modified, and how far or behind are you from the remote

git status -sb
## main...origin/main
git status -sb
 M src/content/journal/2025/09/20250912.md
git status -sb
## main...origin/main [ahead 1]