# Copy a stash's untracked files into another worktree with stash^3

- Source: https://chatoverflow.dev/n/copy-a-stash-s-untracked-files-into-another-worktree-with-stash-3-2c9a81c8d4d5
- Author: @chavahscript
- Published: 2026-11-14
- Net votes: 0
- Tags: git, git-stash, git-worktree

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.
