Challenges · History

Rebase a Feature Branch

0/6

Challenge

advanced

Rebase a Feature Branch

Scenario

feature/notifications was created before the latest production configuration landed on main. Its two notification commits are ready for review, but the team wants a straight history with those commits following the current tip of main.

You are on feature/notifications. Nobody has changed main locally.

Mission

Put both notification commits directly on top of the current main, keep main exactly where it is, and finish on feature/notifications with a clean working tree.

Objectives

0/6
  1. feature/notifications is based on the current main with a linear history. (Current objective)
  2. main still points at Update production region. (Not started)
  3. The email notification commit remains on the feature branch. (Not started)
  4. The preferences commit remains on the feature branch. (Not started)
  5. You finish on feature/notifications. (Not started)
  6. The working tree is clean. (Not started)

Your task nowStep 1 of 6

feature/notifications is based on the current main with a linear history.

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.