Challenges · Branching

Wrong Branch

0/4

Challenge

intermediate

Wrong Branch

Scenario

Deep in the zone, you made two commits for the new login page, then noticed the prompt: you were on main the whole time. The team only merges finished features into main, and nobody has pulled your commits yet.

Mission

Move both login commits onto a new branch called feature/login, and put main back where it was before you started.

Objectives

0/4
  1. feature/login has Add login form. (Current objective)
  2. feature/login has Validate login form. (Not started)
  3. main points at Initial commit again. (Not started)
  4. The working tree is clean. (Not started)

Your task nowStep 1 of 4

feature/login has Add login form.

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.