gpt4 book ai didi

git - 如何让 Git Extensions 浏览器显示所有提交,如 gitk --all

转载 作者:太空狗 更新时间:2023-10-29 13:14:45 26 4
gpt4 key购买 nike

Git Extensions 存储库浏览器在许多方面似乎比 gitk 更通用。

enter image description here

但是,我最喜欢的 gitk 命令行选项是 --allgitk --all 显示所有提交,包括任何分支或标记无法访问的提交。这对于理解 git 中实际发生的事情非常有用。例如,在 rebase 之后,您仍然可以看到已被复制和放弃的原始提交(甚至可以使用 reset 返回给它们)。

enter image description here

有没有办法让 Git Extensions 浏览器表现得像 gitk --all 甚至显示无法访问的提交?

最佳答案

冒着陈述现在显而易见的风险,从 2018 年的 2.51.RC2 版本和更新版本开始,可以通过 reflog 访问的提交现在可以显示在 Git 扩展中。我不确定这是否与 gitk --all 完全相同,但它确实显示了许多其他无法访问的额外提交。

它似乎在幕后使用 git log --reflog

pull 请求是 here ,并与 2.51.RC2 一起发布.

Image of the "Show reflog references" option in the View menu in Git Extensions

关于git - 如何让 Git Extensions 浏览器显示所有提交,如 gitk --all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15590226/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com