Challenges · Advanced

Repository Recovery

0/5

Challenge

advanced

Repository Recovery

Scenario

A colleague tried to "clean up" the repository before going on holiday. Their terminal history shows they stashed someone's unfinished dark-mode work, deleted the feature/reports branch, and ran git reset --hard HEAD~1 on main, throwing away Add invoice PDFs.

The holiday has started. It is up to you.

Mission

Restore main with Add invoice PDFs, bring back feature/reports with its commit, commit the stashed dark-mode work on main as Add dark mode, and leave the stash empty and the working tree clean.

Objectives

0/5
  1. main contains Add invoice PDFs again. (Current objective)
  2. feature/reports exists again with Add monthly reports. (Not started)
  3. main has a commit Add dark mode with the stashed work. (Not started)
  4. Nothing is left in the stash. (Not started)
  5. The working tree is clean. (Not started)

Your task nowStep 1 of 5

main contains Add invoice PDFs again.

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.