Challenge
advancedRepository 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/5maincontainsAdd invoice PDFsagain. (Current objective)feature/reportsexists again withAdd monthly reports. (Not started)mainhas a commitAdd dark modewith the stashed work. (Not started)- Nothing is left in the stash. (Not started)
- 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
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.
