Challenges · History

Split a Mixed Commit

0/7

Challenge

advanced

Split a Mixed Commit

Scenario

The latest commit on feature/analytics mixes a new analytics service with its documentation. Reviewers want the implementation and documentation separated so each change can be reviewed and reverted independently. Nobody else has this branch.

Mission

Replace the mixed commit with Add analytics service, changing only the service file, followed by Document analytics service, changing only the guide. Preserve both files and finish clean.

Objectives

0/7
  1. Add analytics service changes only src/analytics.js. (Current objective)
  2. Document analytics service changes only docs/analytics.md. (Not started)
  3. The documentation commit follows the implementation commit. (Not started)
  4. The branch contains the initial commit and the two focused commits. (Not started)
  5. The analytics service contents are preserved. (Not started)
  6. The analytics guide contents are preserved. (Not started)
  7. The working tree is clean. (Not started)

Your task nowStep 1 of 7

Add analytics service changes only src/analytics.js.

Need help?

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.