Script Valley
Git and GitHub Complete Course: From Beginner to Advanced
Branching, Merging, and Resolving Conflicts/Assessment

Practice & Assessment

Test your understanding of Branching, Merging, and Resolving Conflicts

Multiple Choice Questions

6
1

What does HEAD point to in Git?

2

Which command creates a new branch and switches to it immediately?

3

When does a fast-forward merge occur?

4

What is the golden rule of rebasing?

5

How do you abort a merge that is in progress and has conflicts?

6

What does interactive rebase (git rebase -i) allow you to do?

Mini Project

1

Blog Website Feature Branching Simulation

Set up a repository for a simple blog website. Create and work on three concurrent feature branches: feature/homepage, feature/about-page, and feature/contact-form. Each branch should have at least two commits. Merge them into main one by one, using --no-ff to preserve branch history. Use interactive rebase to squash the commits on one branch before merging. Document your branching strategy in a CONTRIBUTING.md file.

Medium