mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
753 B
753 B
The git stash stack is shared with the main checkout and all other worktrees, and other Claude sessions may push or pop it concurrently. Never use bare git stash / git stash pop — you could pop another session's changes. Prefer a temporary WIP commit to set work aside; if you must stash, use git stash push -u -m "<unique-tag>", immediately capture your entry's SHA via git stash list --format='%H %gs', restore with git stash apply <sha> (not pop), and afterwards drop the entry, re-finding its current stash@{n} by tag first.