Branches and Branching Strategies Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Version Control Fundamentals

What you'll be asked

  1. What is the primary purpose of creating a branch in Git?
  2. Which command would you use to switch from your current branch to a branch named 'feature-login'?
  3. In the context of Git Flow, what is the 'develop' branch primarily used for?
  4. What happens during a merge conflict?
  5. If you are on the 'main' branch and run 'git merge feature-x', but the 'feature-x' branch has diverged significantly and you want to ensure the merge is recorded as a distinct commit even if a fast-forward is possible, which flag should you use?

Answers and explanations come after you submit.