Git Cheatsheet
git branch This command lists all your local branches. Your current branch will have an asterisk (*) next to it.
Local branches only: git branch
Remote branches only: git branch -r
All local and remote branches: git branch -a
On Git version 2.22+, you can use git branch --show-current to explicitly show the current branch
git status This command shows any uncommitted file changes or sync status with remote server.
Posted by John Liu Friday, July 10, 2026