【问题标题】:How to print the output of GitK如何打印 GitK 的输出
【发布时间】:2012-02-17 08:38:15
【问题描述】:

我在 Windows 上使用 git v 1.7.4.msysgit.0。

我想打印 gitK的输出(我的意思是物理上在纸上

我在那里找不到打印菜单,谷歌在这里也没有帮助。

【问题讨论】:

  • 你需要什么输出?如果你需要图表,你可以试试git log --graph吗?
  • 我需要用我的打印机打印图表

标签: git gitk


【解决方案1】:

正如“Pretty git branch graphs”中提到的,gitk没有打印功能(2009年,据我所知2012年仍然如此)。

唯一的解决方案是捕获您感兴趣的 gitk 窗口的一部分,但这不会捕获 所有 gitk 显示的历史记录。
即使是non-free Git Windows client like SmartGit 似乎也没有这个功能......

【讨论】:

    【解决方案2】:
    git log --graph --all --decorate
    

    应该给你你的回购的文本表示。如果您想要精简版,请添加 --oneline。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-12
    • 2021-12-29
    • 1970-01-01
    • 1970-01-01
    • 2015-11-15
    • 2020-11-02
    • 2014-10-09
    相关资源
    最近更新 更多