查看隐藏内容而不应用它
可能重复:
是否有可能在git中预览隐藏内容?
我在这里看到你可以申请/不申请一个藏匿处,甚至从藏匿处创建一个新的分支。 是否有可能简单地看到隐藏在内部的东西而不实际应用它?
从man git-stash
页面:
这个命令隐藏的修改可以用git存储列表列出,用git存储显示进行检查
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 stash show -p
要查看任意存储的内容,请运行类似的内容
git stash show -p stash@{1}
链接地址: http://www.djcxy.com/p/57235.html
上一篇: See what's in a stash without applying it
下一篇: Trying to fix line