Pretty git branch graphs

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

    I wrote a web tool for converting git logs into pretty SVG graphs: Bit-Booster - Offline Commit Graph Drawing Tool

    Upload output from git log --pretty='%h|%p|%d' directly into the tool and then click on the "download graph.svg" link.

    The tool is pure-client-side, and so none of your Git data is shared with my server. You can also save the HTML + JS locally and run it using "file:///" URL's. Verified on Chrome 48 and Firefox 43 on Ubuntu 12.04.

    It generates HTML that can be posted directly into any page (including the blogspot blogging engine!). Take a look at some of the blog posts here:

    http://bit-booster.blogspot.ca/

    Here's a screenshot of a sample HTML file generated by the tool:

    http://bit-booster.com/graph.html (the tool)

提交回复
热议问题