Pretty git branch graphs

前端 未结 30 1981
情话喂你
情话喂你 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:07

    If your repository sits on Gitlab, you can use its graph representation as that is rendered as SVG in your browser.

    • Go to your repository's graph view, e.g. https://gitlab.com/gitlab-org/gitter/webapp/network/develop

    • Scroll the graph down to the bottom (it lazy loads commits!)

    • Use your browser's inspector to copy the SVG element to a new file

    • Open it in a renderer of your choice, e.g. Inkscape

提交回复
热议问题