Git for windows使用gitk-all启动gitk上下文菜单

时间:2012-06-05 22:31:46

标签: git windows-7 gitk

我安装了Git for Windows。当我右键单击一个项目并选择Git History时,我会看到Gitk窗口,但每次这样做时,我都需要设置视图以查看所有分支。即使我编辑视图并将其设置为Remember,我仍然无法在后续访问Gitk时获得所有分支。

或者,我可以打开Bash窗口并输入gitk --all以获得相同的结果。

两者都不方便,我想制作点击默认行为并选择Git History来显示gitk --all

如何实现这一目标?

感谢。

2 个答案:

答案 0 :(得分:0)

修改该上下文菜单条目的注册表以添加参数“--all”

答案 1 :(得分:0)

这对我有用:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\shell\Open with &gitk --all\command]
@="C:\\Users\\rofro\\scoop\\shims\\gitk.exe --all \"%1\""

[HKEY_CURRENT_USER\Software\Classes\directory\Background\shell\Open with &gitk --all\command]
@="C:\\Users\\rofro\\scoop\\shims\\gitk.exe --all \"%V\""
相关问题