Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 328 Bytes

get_single_file_from_stash.md

File metadata and controls

11 lines (9 loc) · 328 Bytes

Get a single file from 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