gpt4 book ai didi

git - 如何返回:Gblame after selecting a particular commit?的结果

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

来自 fugitive 的自述文件vim 插件:

:Gblame brings up an interactive vertical split with git blame output. Press enter on a line to edit the commit where the line changed, or o to open it in a split.

一旦我在特定提交上按下 enter,是否有可能返回到 blame 输出?

最佳答案

我想您可能正在寻找的是 -

编辑:你真正想要的是 Oo而不是 <CR>如果您知道您将返回提交。

这里是 :Gblame 的所有标志命令:

                                           *fugitive-:Gblame*
:Gblame [flags]
Run git-blame on the file and open the results in a
scroll bound vertical split. You can give any of
ltfnsewMC as flags and they will be passed along to
git-blame. The following maps, which work on the
cursor line commit where sensible, are provided:

g? show this help
A resize to end of author column
C resize to end of commit column
D resize to end of date/time column
q close blame and return to blamed window
gq q, then |:Gedit| to return to work tree version
<CR> q, then open commit
o open commit in horizontal split
O open commit in new tab
- reblame at commit
~ reblame at [count]th first grandparent
P reblame at [count]th parent (like HEAD^[count])

有关 Fugitive 命令的更多信息,看here .

关于git - 如何返回:Gblame after selecting a particular commit?的结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24868556/

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