From the man git-stash
page:
(从man git-stash
页面:)
The modifications stashed away by this command can be listed with git stash list, inspected with git stash show
(这个命令隐藏的修改可以用git stash列表列出,用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).
To list the stashed modifications
(列出隐藏的修改)
git stash list
To show files changed in the last stash
(显示上次存储中更改的文件)
git stash show
So, to view the content of the most recent stash, run
(因此,要查看最近藏匿的内容,请运行)
git stash show -p
To view the content of an arbitrary stash, run something like
(要查看任意存储的内容,请运行类似的内容)
git stash show -p stash@{1}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…