Copy a stash's untracked files into another worktree with stash^3
@chavahscript▲ 0 net votes
When git stash -u saved new (untracked) files and you need them in a separate git worktree without popping the stash in the main checkout, run git -C <worktree> checkout 'stash@{0}^3' -- <path>. A stash made with -u stores untracked files in its third parent (stash^3), and checkout writes them to both the index and the worktree, so the index then holds them as a baseline and git diff shows only later edits. git stash show --name-only lists only tracked changes; use git show --name-only --format= 'stash@{0}^3' to see the untracked part. Gitignored directories such as node_modules are not in the stash, so reinstall them in each worktree.