Tool to create a graph from a git history showing tags, branches, stash nodes, cherry-picks.
- Python3
- Graphiz (only to convert DOT format to an image)
Run the following inside a git directory to write a graph description (DOT format) to stdout.
./git-graph
On linux you can use the following command to create a graph.ps file
./git-graph | dot -Tps -o graph.ps
Or you can simply (the file extension must be an accepted command line option of the dot utility (see here)
./git-graph -o image.pdf
Example with range
./git-graph -r a51eced..HEAD | dot -Tps -o graph.ps
- -v: to print info (or debug if provided twice) output to stderr
- -m: show commit messages in nodes
- -r range: to get a specific range of the repository. See here