Git Checkout Quiz
Multiple Choice Easy
Question
What does `git checkout main` do?
Hint
Checkout means switch to.
Explanation
git checkout main switches your working directory to the state of the main branch, making it the current branch. To create a new branch you use git checkout -b <name>. To delete, use git branch -d. To merge, use git merge.
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.