Примечание: Вы можете использовать stash@{<revision>}
для выполнения команды на любом желаемом уровне sh
Sta sh команды
git stash
( без параметров)
Sta sh с неотслеживаемыми файлами
$ git stash -u
$ git stash [save] -u
git stash pop
# Remove a single stashed state from the stash list and apply it on top
# of the current working tree stat
$ git stash pop
# Pop a specific stash
$ git stash pop stash@{2}
git stash list
# List all stashes
$ git stash list
git stash drop
# Drop a specific stash
$ git stash drop stash@{1}
# Drop all stashes
$ git stash clear
git stash apply
# Like pop, but **does not remove** the stash from the stash list
git stash show
# Show the changes recorded in the stash as a diff between
# the stashed state and its original parent
$ git stash show
Например:
Просмотр sh содержание
# display on the stash content
git stash show stash@{1} -u
# checkout the desired commit and choose the right action you want
git checkout -p stash@{0} -p <path to file>
![enter image description here](https://i.stack.imgur.com/am6dX.png)