Git Branch Purpose
Multiple Choice Easy
Question
What does git branch feature do?
Hint
git branch creates; git checkout switches.
Explanation
git branch feature creates a new branch called feature pointing at the current commit. It does not switch to the branch. To switch, use git checkout feature or git switch feature. To create and switch in one step: git checkout -b feature or git switch -c feature. Branches allow parallel development without affecting the main branch.
Related Resources
Related Lessons
- Git Branch
Learn git branch.
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.