作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
来自 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 输出?
最佳答案
我想您可能正在寻找的是
-
O
和
o
而不是
<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/
我是一名优秀的程序员,十分优秀!