Pretty git branch graphs

前端 未结 30 2019
情话喂你
情话喂你 2020-11-22 01:34

I\'ve seen some books and articles have some really pretty looking graphs of git branches and commits. How can I make high-quality printable images of git history?

30条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 02:08

    git -c core.pager='less -SRF' log --oneline --graph --decorate
    

    This is my terminal variation, similar to many answers here. I like to adjust the flags passed to less to prevent word wrapping.

    I set this to an alias for quick access since the command is a bit cumbersome.

提交回复
热议问题