如何通过git stash push filename命令查看git stash的修改

问题描述 投票:0回答:1

我之前通过git stash push file_path存放了一些文件。现在我可以看到它们的列表git存储列表

stash@{0}: WIP on web_09_11: a6c038e7 Merged PR 25503: Get latst commites
stash@{1}: WIP on web_09_11: a6c038e7 Merged PR 25503: Get latst commites
stash@{2}: WIP on web_09_11: a6c038e7 Merged PR 25503: Get latst commites
stash@{3}: WIP on web_09_11: a6c038e7 Merged PR 25503: Get latst commites

我想查看每个隐藏的内容。我发现如果我尝试它应该显示

git stash show stash @ {1}

但是它给我的错误是:致命:参数“ stash @”不明确:未知版本或路径不在工作树中。使用“-”分隔路径来自修订,例如:

或指定的修订太多:'stash @''MQA =''xml''文本'

我怎么看?

git git-stash
1个回答
0
投票
git show 'stash@{1}'
© www.soinside.com 2019 - 2024. All rights reserved.