Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 465 Bytes

grab-a-single-file-from-a-stash.md

File metadata and controls

17 lines (12 loc) · 465 Bytes

Grab A Single File From A Stash

In git, you can reference a commit SHA or branch to checkout differing versions of files.

$ git checkout d3d2e38 -- README.md

In the same way, you can snag the version of a file as it existed in a stash. Just reference the relevant stash.

$ git checkout stash@{1} -- README.md

source