harbor run -t LiteCoder/git-stash-workshop-setupharbor download LiteCoder/git-stash-workshop-setupSet up a Git repository that demonstrates mastery of Git stash commands, including creating multiple stashes, applying specific stashes, managing stash history, and working across branches.
All work must be done inside /app/repo/.
/app/repo/.main branch with the message "Initial commit":
index.html — containing at least an <html> tag and a <body> tagstyle.css — containing at least one CSS ruleapp.js — containing at least one JavaScript statementfeature/user-dashboard.index.html (add a <div id="dashboard"> element).style.css (add a #dashboard CSS rule).WIP: dashboard layoutAfter stashing, the working directory must be clean (no uncommitted changes).
feature/user-dashboard, modify app.js (add a function named loadDashboard).WIP: dashboard JS logicThe stash stack should now contain exactly 2 entries. stash@{0} should be WIP: dashboard JS logic and stash@{1} should be WIP: dashboard layout.
main branch.app.js (e.g., add a comment or a console.log statement with the text bugfix).Fix critical bug in app.jsfeature/user-dashboard.stash@{1} (the dashboard layout stash) without removing it from the stash stack using git stash apply.feature/user-dashboard with the message: Apply dashboard layoutAfter this step, the stash stack must still contain 2 entries (since apply does not remove the stash).
stash@{0} (the dashboard JS logic stash) using git stash pop.Apply dashboard JS logicAfter this step, the stash stack must contain exactly 1 entry (the remaining WIP: dashboard layout stash).
index.html.WIP: temporary experimentstash@{0} (the temporary experiment) using git stash drop.git stash clear to remove all remaining stashes.Write a file /app/repo/stash_summary.txt containing one line per operation performed, in order. Each line must start with one of these prefixes:
STASH_SAVE: — for each stash save/pushSTASH_APPLY: — for each stash applySTASH_POP: — for each stash popSTASH_DROP: — for each stash dropSTASH_CLEAR: — for each stash clearExample format:
STASH_SAVE: WIP: dashboard layout
STASH_SAVE: WIP: dashboard JS logic
STASH_APPLY: stash@{1}
STASH_POP: stash@{0}
STASH_SAVE: WIP: temporary experiment
STASH_DROP: stash@{0}
STASH_CLEAR: all
Commit this file on feature/user-dashboard with the message: Add stash summary
main and feature/user-dashboard.main branch must have exactly 2 commits (Initial commit and Fix critical bug in app.js).feature/user-dashboard must have the initial commit plus at least 3 additional commits (Apply dashboard layout, Apply dashboard JS logic, Add stash summary)./app/repo/stash_summary.txt must exist and follow the format above with exactly 7 lines.