How would I extract a single file (or changes to a file) from a git stash?

前端 未结 9 1609
一生所求
一生所求 2020-11-28 00:14

I\'d like to know if it is possible to extract a single file or diff of a file from a git stash without popping the stash changeset off.

Might anyone be able to prov

9条回答
  •  时光说笑
    2020-11-28 00:29

    Short answer

    To see the whole file: git show stash@{0}:

    To see the diff: git diff stash@{0}^1 stash@{0} --

提交回复
热议问题