简体   繁体   English

用tig浏览迷失的头

[英]Browse lost heads with tig

tig is a nice text-mode interface for Git, but it only shows the current branches. tig是用于Git的不错的文本模式界面,但仅显示当前分支。

How can I see lost heads and stashes in the tree view? 我如何在树状视图中看到丢失的头和藏匿处?

For tree view it doesn't seem you can't. 对于树形视图,似乎并非不可能。 Manual defines tree view as only working with current revision . 手册将树形视图定义为仅适用于当前版本

You can switch tree view to refs or stash view though, from tig manual : 您可以通过tig manual将树形视图切换为ref或stash视图:

4.1. View Switching
Key     Action
[..]
r       Switch to refs view.
y       Switch to stash view.

AFAIK lost heads are only visible through reflog. AFAIK丢失的头仅通过reflog可见。 As for viewing reflog, 至于查看reflog,

It is supported to some extend but probably not well documented. 它得到了一定程度的支持,但可能没有充分记录。 Try: 尝试:

git reflog --pretty=raw | git reflog --pretty = raw | tig --pretty=raw tig --pretty =原始

( source ) 来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM