Rebase Feature Branch
GitHub 👶 Easy Git
Beginner Mode

Start your terminal to use beginner mode.

Scenario:

You have a Git repository at /home/interview/repo where your feature-payment branch is 32 commits behind main. You need to rebase the feature branch onto the latest main and resolve conflicts that occur during the process.

Task:

Navigate to /home/interview/repo, rebase feature-payment onto main, resolve any conflicts that arise, and verify the feature branch is now based on the latest main with all feature commits preserved.

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →