StaffCoder
Git
GitGit 2.47.3Linux CLI
10 modules · 40 challengesSign up
Modules10 modules · 40 challenges
Learn how to rewrite a branch into the history a reviewer should see. Reorder and reword commits, squash noisy work into reviewable ones, and split a commit that does two things.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Reorder and Reword

Sign up to unlock
—No data yetmedium
About this challenge

Interactively rebase a branch to replay its four commits in the right narrative order and fix two wrong commit messages, leaving every commit's content and the final tree untouched.

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

Squash the Noise

Sign up to unlock
—No data yetmedium
About this challenge

Collapse a trail of 'wip', 'typo' and 'oops' commits into three reviewable ones, letting two fixup-marked late fixes fold automatically into the different earlier commits they name, with the final tree unchanged.

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

Split a Fat Commit

Sign up to unlock
—No data yetmedium
About this challenge

Rewrite a branch so one commit that mixes a bug fix with a feature becomes two clean commits, the fix first, with everything stacked above it preserved.

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

History Ready for Review

STAR
Solving it completes the module
0%0 of 1 solvedmedium
About this challenge

Turn a working but unpresentable branch into the exact reviewable sequence - reordered, reworded, noise squashed, marked fixups folded into their targets and a bloated commit split - without changing what it builds.

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

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.