我看到了here,你可以应用/取消应用存储,甚至可以在存储的基础上创建一个新的分支。是否有可能在不实际应用它的情况下简单地查看存储库中的内容?
发布于 2012-05-23 18:58:50
从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).
注意:根据git-diff
文档,-p
选项将生成补丁程序。
列出隐藏的内容:
git stash list
显示最新存储中的文件:
git stash show
显示最新存储的更改:
git stash show -p
显示命名存储的更改:
git stash show -p stash@{1}
https://stackoverflow.com/questions/10725729
复制