GIT utility to generate graph like this? -
i working on assignment, need generate graph of git repository arrows
is there utility generate graph this? know gitg, gitk; need utility through can generate graph in same format 1 shown in picture?
an answer inside se here. links alias, creating dot file based on git repository
pretty add:
[alias] graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
to .git/config. after this, can run , create diagram e.g.
git graphviz head~100..head~60 | dotty /dev/stdin
(also token link wiki resource). if redirect output dot-file, can manually compile graph on wishes dot or maybe neato. can adjust alias little better formatting (color, shape...) of e.g. nodes.
Comments
Post a Comment