List All Branches Fill
Fill in the Blank Easy
Question
Fill in the blank to list all branches including remote ones.
Code
git branch ___
Hint
The flag for 'all' is two characters.
Explanation
git branch -a (or --all) lists all branches: local branches and remote-tracking branches (prefixed with remotes/). This is useful to see what branches exist on the remote before checking one out. Remote branches appear as remotes/origin/branch-name.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.