Practice

Shelve Work for a Hotfix

StashingintermediatePractice

Shelve Work for a Hotfix

You are halfway through editing profile.js on feature/profile when a bug report comes in: the footer link on main is broken. Your profile edits are not ready to commit.

Your mission

Commit the footer fix as Fix footer link on main (the link should point to /about), then be back on feature/profile with your unfinished profile.js edits in the working tree, still uncommitted, and nothing left on the shelf.

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? Shelve Work with git stash

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.