Git 在其父提交位置显示隐藏

Git 在其父提交位置显示隐藏,git,git-log,git-stash,Git,Git Log,Git Stash,我正在使用以下命令列出我的所有提交: git log --oneline --graph --decorate --all 这只显示我的库存的一个条目。这个条目位于我开始隐藏的最后一次提交的位置 是否也可以显示每个存储在它的父提交 假设我有以下git日志: * 063b893 (HEAD, master) first commit * 4e6efb9 initial commit 添加隐藏后: * 51eb834 (refs/stash) WIP on master: 063b893 f

我正在使用以下命令列出我的所有提交:

git log --oneline --graph --decorate --all
这只显示我的库存的一个条目。这个条目位于我开始隐藏的最后一次提交的位置

是否也可以显示每个存储在它的父提交

假设我有以下git日志:

* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
添加隐藏后:

*   51eb834 (refs/stash) WIP on master: 063b893 first commit
|\  
| * dfafaaf index on master: 063b893 first commit
|/  
* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
添加第二个隐藏问题1后:仅显示最后一个隐藏:

*   1e9b384 (refs/stash) WIP on master: 063b893 first commit
|\  
| * 4862a3d index on master: 063b893 first commit
|/  
* 063b893 (HEAD, master) first commit
* 4e6efb9 initial commit
添加第二次提交后,隐藏仍显示在正确的位置:

* c09a3fc (HEAD, master) second commit
| *   1e9b384 (refs/stash) WIP on master: 063b893 first commit
| |\  
|/ /  
| * 4862a3d index on master: 063b893 first commit
|/  
* 063b893 first commit
* 4e6efb9 initial commit
添加另一个隐藏和提交后问题2:在第一次提交后直接进行的隐藏不会显示。显示的唯一隐藏在第二次提交后:

我希望看到:

* d86c140 (HEAD, master) third commit
| *   4efd3e0 (refs/stash) WIP on master: c09a3fc second commit
| |\  
|/ /  
| * 5065abe index on master: c09a3fc second commit
|/  
* c09a3fc second commit
| *   1e9b384 (refs/stash) WIP on master: 063b893 first commit
| *   51eb834 (refs/stash) WIP on master: 063b893 first commit
| |\  
|/ /  
| * 4862a3d index on master: 063b893 first commit
|/  
* 063b893 first commit
* 4e6efb9 initial commit
问题在于-all只是查看所有引用,而stash正好是一个引用,给出了最新/当前的stash

其他的藏品都在哪里?他们躲在裁判室里-all不提取回流,而-DETAIN不检查回流

您可以通过显式调用其他存储来显示它们:

git log --oneline --graph --decorate --all stash@{1} stash@{2}

这假设总共有三个仓库,-所有仓库都有一个,我们在这里加上另外两个;它需要一点脚本或类似的程序来计算隐藏reflog条目,并添加适当数量的隐藏{n}项,但它们不会得到修饰。

上一次提交的位置可以被视为其父项。你能把那张图的样子和你困惑的地方贴出来吗?我希望stash ref指向我在隐藏代码时所处的历史位置。
git log --oneline --graph --decorate --all stash@{1} stash@{2}