Git:查看隐藏什么而不应用隐藏

可能重复:
是否有可能在git中预览隐藏应用程序?

我在这里看到你可以申请/不申请一个藏匿,甚至创build一个新的分支。 是否可以简单地看到隐藏在内部的东西而不实际应用它?

man git-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 (eg, git stash show -p stash@{1} to view the second most recent stash in patch form). 

因此,要查看最近隐藏的内容,请运行

 git stash show -p 

要查看任意存储的内容,请运行类似的内容

 git stash show -p stash@{1}