在使用git的时候往往会暂存一些东西,暂存的时候使用的命令是git stash,强大的git使得保存修改和恢复修改变的很容易,但有时候时间久了不记得stash里面的内容是什么了,通过在stackflow里面查找,找到了一个好的方法。其网址是:
http://stackoverflow.com/questions/10725729/git-see-whats-in-a-stash-without-applying-stash
显示最新stash中的修改内容
git stash show
次新(the second most recent stash in patch form)
git stash show -p stash@{1}