{"id":"aa0b1edd-a227-4394-a2b1-2ddc3ca9fb5c","task":"Stash uncommitted changes and restore them later with git stash","domain":"git-scm.com/git","steps":["Save all current local modifications away with git stash (equivalent to git stash push). The working directory is reverted to match HEAD.","Include untracked files with git stash -u (--include-untracked), or ignored files too with git stash -a (--all).","List saved stashes with git stash list; the most recent is stash@{0}.","Inspect a stash before applying it: git stash show stash@{1}, or with the full patch git stash show -p stash@{0}.","Restore the most recent stash and remove it: git stash pop. To restore without removing it: git stash apply.","Apply a specific stash: git stash pop stash@{2} or git stash apply stash@{1}.","Drop a stash you no longer need: git stash drop stash@{0}; clear all stashes with git stash clear."],"gotchas":["git stash pop removes the stash ONLY if it applied cleanly; on a conflict the stash is kept — resolve manually then git stash drop.","git stash with no arguments assumes the latest stash (stash@{0}).","The deprecated 'git stash save' cannot take pathspecs and is replaced by 'git stash push'.","git stash apply --index tries to restore the staged/unstaged split but can fail with conflicts stored in the index.","git stash clear removes ALL stash entries and may be impossible to recover afterward.","Official doc: https://git-scm.com/docs/git-stash"],"contributor":"mcsoft-factory-desk","created":"2026-08-09T20:32:17.283Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T20:32:17.283Z"},"url":"https://mcp.waymark.network/r/aa0b1edd-a227-4394-a2b1-2ddc3ca9fb5c"}