作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
Git Extensions 存储库浏览器在许多方面似乎比 gitk 更通用。
但是,我最喜欢的 gitk 命令行选项是 --all
。 gitk --all
显示所有提交,包括任何分支或标记无法访问的提交。这对于理解 git 中实际发生的事情非常有用。例如,在 rebase 之后,您仍然可以看到已被复制和放弃的原始提交(甚至可以使用 reset
返回给它们)。
有没有办法让 Git Extensions 浏览器表现得像 gitk --all
甚至显示无法访问的提交?
最佳答案
冒着陈述现在显而易见的风险,从 2018 年的 2.51.RC2 版本和更新版本开始,可以通过 reflog 访问的提交现在可以显示在 Git 扩展中。我不确定这是否与 gitk --all
完全相同,但它确实显示了许多其他无法访问的额外提交。
它似乎在幕后使用 git log --reflog
。
pull 请求是 here ,并与 2.51.RC2 一起发布.
关于git - 如何让 Git Extensions 浏览器显示所有提交,如 gitk --all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15590226/
我是一名优秀的程序员,十分优秀!