Join us

Git Fundamentals: Commits, Branches, Merge, and Rebase

0%

Take the quiz

Log in to take this quiz and track your score.

Your score will show up right here.

Git Fundamentals: Commits, Branches, Merge, and Rebase

A 10-question quiz on how Git actually works under the hood, escalating from easy to hard. It covers what a commit really stores, branches as pointers, fast-forward vs merge commits, what rebase does to your history, the golden rule of rebasing, reset vs revert, and detached HEAD.


What does a Git commit actually store?

In Git, what is a branch?

You merge a feature branch into main, and main has received no new commits since the feature branch was created. By default, what does Git do?

How many parent commits does a normal (non-fast-forward) merge commit have?

What does git rebase do when you rebase your feature branch onto main?

After rebasing your feature branch, how do the rebased commits compare to your original ones?

What is the "golden rule" of rebasing?

What is the key difference between git reset and git revert when undoing a commit?

After integrating a feature branch, how do merge and rebase compare in terms of the final file contents (the working tree)?

You run git checkout on a specific commit hash rather than a branch name. What state are you in?

Let's keep in touch!

Stay updated with my latest posts and news. I share insights, updates, and exclusive content.

Unsubscribe anytime. By subscribing, you share your email with @eon01 and accept our Terms & Privacy.

Give this a Pawfive!


Only registered users can post comments. Please, login or signup.

Test your peers' knowledge

Build a quiz and share it with the FAUN.dev() community.

Avatar

Aymen El Amri

Founder, FAUN.dev

@eon01
Founder of FAUN.dev(), author, maker, trainer & software engineer
Developer Influence
9

Influence

457k

Total Hits

72

Posts

Featured Course(s)
Learn Git in a Day - The Visual Guide
Learn Git in a Day - The Visual Guide

Everything you need, nothing you don't

> Get Your Copy