当 git stash push filename 完成时如何查看 git stash 修改
How to see git stash modification when it was done by git stash push filename
我之前通过 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}
But it gives me error as:
fatal: ambiguous argument 'stash@': unknown
revision or path not in the working tree. Use '--' to separate paths
from revisions, like this:
Or Too many revisions specified: 'stash@' 'MQA=' 'xml' 'text'
我怎样才能看到它?
这是一个 shell 问题:在 'stash@{xx}'
周围使用引号
git show 'stash@{1}'
In Powershell 例如:{ cmd1; cmd2 }
定义了一个 script block
这是我得到的示例:
> echo stash@{1}
stash@
1
> echo 'stash@{1}'
stash@{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}
But it gives me error as:
fatal: ambiguous argument 'stash@': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this:Or Too many revisions specified: 'stash@' 'MQA=' 'xml' 'text'
我怎样才能看到它?
这是一个 shell 问题:在 'stash@{xx}'
git show 'stash@{1}'
In Powershell 例如:{ cmd1; cmd2 }
定义了一个 script block
这是我得到的示例:
> echo stash@{1}
stash@
1
> echo 'stash@{1}'
stash@{1}