← All topics
Quiz: Branching and Merging: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Which command creates a new branch and switches to it?
- Q2. When does a merge conflict happen?
- Q3. After fixing a conflicted file, what do you run?
- Q4. Which is true about rebase?
- Q5. What is a "fast-forward" merge?
- Q6. Which command lists your local branches and marks the current one?
- Q7. When does git merge feature create a merge commit instead of a fast-forward?
- Q8. In a conflicted file, what do the lines between <<<<<<< HEAD and ======= contain?
- Q9. Why should you not rebase a branch that teammates are already using?
- Q10. What is the main benefit of short-lived branches that merge often?