devanthe.dev

Pull File from a Stash

1 min read

1git checkout stash [stash index] -- [filename]

Also interesting to know that when you do a git stash, git saves two commits: one for the state of the index, and one for the state of the working copy (which is a merge between the index and the original HEAD).