Practice

Squash Before Review

Rewriting historyadvancedPractice

Squash Before Review

feature/charts is ready for review, but its history has three commits for one small feature: Add charts, fix and fix again. Nobody else has the branch yet. You are on it.

Your mission

Leave feature/charts with a single commit, Add charts, on top of Initial commit, with the final chart code exactly as it is now.

No steps and no hints here: GitDojo checks the repository after every command and edit, whichever way you get there.

Setting up the repository…

Another task

Want the guided version? Rewrite History with Interactive Rebase

Preparing your workspace…

Repository Graph

Click a commit to inspect it

0 commits

Working Tree

Not a Git repository yet

No unstaged changes

Your working tree matches the staging area.

Staging Area

Files prepared for the next commit

No staged changes

Use git add to prepare files for your next commit.

Repository

Committed history

No commits yet

Use git commit to record staged changes.