StaffCoder
Git

Git Practice Exercises

Git 2.47.3Linux CLI
10 modules · 40 challengesSign up
Modules10 modules · 40 challenges
Initialize repositories, stage changes, and build a readable commit history.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Project Comes Under Version Control

Sign up to unlock
50%4 of 8 solvedeasy
About this challenge

Begin your Git journey by initializing a repo and performing your first commits.

Solved in a browser IDE and graded by tests. Sign up to solve

Snapshot Commit Trail

Sign up to unlock
67%2 of 3 solvedeasy
About this challenge

Build a small project's history one commit at a time.

Solved in a browser IDE and graded by tests. Sign up to solve

History Readback

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Read an existing project's history and answer questions about its commits.

Solved in a browser IDE and graded by tests. Sign up to solve

Chronicle of a New Project

STAR
Solving it completes the module
67%2 of 3 solvedeasy
About this challenge

Start a project from an empty folder and grow it into a readable history.

Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Master Git from your first commit to advanced Git internals. Learn commits, branches, merging, rebasing, remotes, tags, history rewriting, recovery, hooks, and Git’s object model through hands-on problems. Every challenge is verified against a real repository, so you learn how Git actually works by using it, breaking it, and fixing it.

This path starts with your first commit and goes on to staging, undoing changes, branching, merging, remotes, merge conflicts and interactive rebase. You work in a Linux terminal, so you should be comfortable running basic commands there. No earlier Git experience is needed. Later challenges have you clean up history before review by reordering, squashing and splitting commits.

Frequently asked questions

4

What will I practice in this path?

10 modules: Repositories & Commits, Staging & Diffs, Undoing Changes, Branching, Merging, Remotes Basics, Configuration & Ignoring, Merge Conflicts, Rebasing and Interactive Rebase & History Editing.

How many Git exercises are there, and how hard are they?

40 exercises: 28 easy and 12 medium.

What does this path run on?

Challenges run on Git 2.47.3 and Linux CLI.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.