Predict Branch List
Predict Output Easy
Question
On main, you run `git branch feature`. What does `git branch` show?
Code
git branch feature
git branch
Hint
The current branch is marked with an asterisk.
Explanation
git branch feature creates the branch but does not switch to it. git branch lists all branches; the current one (main) is marked with *. The new feature branch appears below without the asterisk because you are still on main.
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.