Skip to content

Instantly share code, notes, and snippets.

@larsks
Created February 14, 2021 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsks/45ecace9319ec2d25d44ebdc500462e7 to your computer and use it in GitHub Desktop.
Save larsks/45ecace9319ec2d25d44ebdc500462e7 to your computer and use it in GitHub Desktop.
drawing git history with graphviz
digraph G {
rankdir="LR";
bgcolor="white";
node[width=0.15, height=0.15, shape=circle, color=black, fontcolor=black];
edge[weight=2, arrowhead=none, color=black];
master[shape=box];
topic[shape=box];
node[group=main];
1 -> 2 -> 3 -> 4 -> 5;
5 -> master [style=dotted];
node[group=topic];
2 -> 6 -> 7 -> 4;
7 -> topic [style=dotted];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment