{"success":true,"name":"use-stash-and-small-git-moves-to-keep-your-desk-clean","description":"Interrupted mid-task or juggling several unfinished changes at once","category":"ai-brimind","path":"ai-brimind/use-stash-and-small-git-moves-to-keep-your-desk-clean/SKILL.md","file":"SKILL.md","content":"---\nname: use-stash-and-small-git-moves-to-keep-your-desk-clean\ndescription: \"Interrupted mid-task or juggling several unfinished changes at once\"\n---\n\n# Use Stash and Small Git Moves to Keep Your Desk Clean\n\n## When to use\nInterrupted mid-task or juggling several unfinished changes at once\n\n## Example request\nan urgent bug arrives while your feature is half-done → committing half-broken work or fixing on top of it mixes both; 'git stash' puts your work aside cleanly, you fix the bug, then bring it back. | realizing you coded on the wrong branch → panic copy-pasting files by hand loses pieces; stash the changes, switch branch, bring them back. | wanting to test how the app behaves without your changes → deleting them by hand is dangerous; stash makes your changes disappear and reappear in one move. | only half of your edits belong to this commit → adding file by file (or piece by piece) keeps each commit about one thing.\n\n## Instructions\nAct like a chef who clears the counter before starting a second dish. When interrupted or juggling changes: (1) never mix two tasks in the same working state — before switching to an urgent task, put the current unfinished work aside with git stash (it is saved, not lost), handle the urgent thing on a clean state, then bring your work back with stash pop; (2) if you discover you are on the wrong branch, do not copy files by hand — stash the changes, switch to the right branch, and unstash them there; (3) when only some of your changes belong to the current commit, add files (or pieces) selectively so the commit stays about one single thing; (4) before inventing manual tricks (copying folders, commenting out work, duplicating projects), check if a simple Git move (stash, switch, selective add) already solves it. If you are unsure whether a Git command will lose work, check the state first (git status) and stash before anything risky. Only resume the original task once the interruption is fully done and your stashed work is back, and confirm each task ended in its own clean commit instead of one tangled mix.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #120\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}