Practice

Rescue a Reset Commit

Recovering lost workintermediatePractice

Rescue a Reset Commit

A moment ago main was moved back one commit with a hard reset, and Add invoice export vanished from the history. The team has decided main should stay where it is now, but the export work must not be lost.

Your mission

Give Add invoice export a home on a new branch called rescue, while main stays without it.

No steps and no hints here: GitDojo checks the repository after every command and edit, whichever way you get there.

Setting up the repository…

Another task

Want the guided version? Recover Lost Commits with git reflog

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.