我如何在不实际应用的情况下查看隐藏的内容?


从man git stash(也可以通过git help stash获得):

这个命令隐藏的修改可以用git stash list列出,用git stash show检查,然后。。。

show [<stash>]
    Show the changes recorded in the stash as a diff between the stashed
    state and its original parent. When no <stash> is given, shows the
    latest one. By default, the command shows the diffstat, but it will
    accept any format known to git diff (e.g., git stash show -p stash@{1}
    to view the second most recent stash in patch form).

注意:根据gitdiff文档,-p选项生成一个补丁。

列出藏匿物品:

git stash list

显示最近存储的文件:

git stash show

显示最近存储的更改:

git stash show -p

显示命名存储的更改:

git stash show -p stash@{1}

或者简而言之:

git stash show -p 1