Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Created November 11, 2015 18:18
Show Gist options
  • Save Teino1978-Corp/f5c969adb5074391423a to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/f5c969adb5074391423a to your computer and use it in GitHub Desktop.
Ruby script that creates a Graphviz graph showing the high-level structure of a repository's history.
A ruby script that creates a Graphviz graph showing the high-level structure of a repository's history
Sample usage:
./git-graph.rb <path-to-repo> | dot -Tpng -ohistory.png /dev/stdin
./git-graph.rb <path-to-repo> --svg | dot -Tsvg -ohistory.svg /dev/stdin
Requires the Grit and fast_xs Ruby libraries. Use bundler to make sure they are installed.
Based on http://code.activestate.com/recipes/577572-display-a-git-repository/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment