EduFlow
Git & GitHub

Checkpoint: Branching and Merging

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

On main, you run git switch -c hero-image, edit index.html without committing, then run git switch main. Both branches point at the same commit. What happens to your edit?

Question 2 of 5

git branch -d old-layout fails with error: the branch 'old-layout' is not fully merged. What does that mean?

Question 3 of 5

You’re three commits into git rebase main on your branch when a conflict makes you realise you’d rather merge. How do you return to exactly where you were before the rebase?

Question 4 of 5

You and a teammate both push to the shared redesign branch on GitHub. It’s fallen behind main. How should you bring it up to date?

Question 5 of 5

During a merge, styles.css conflicts, and you know the incoming branch’s version is right for the whole file. What’s the quickest correct resolution?

5 questions unanswered