Everyone on my team draws branch diagrams differently, including how branches exit or reintegrate to the parent, how cherry-pick merges are shown, and a host of other aesthetic choices.

Is there some structured format for drawing source control branches (like UML but for source control)?

  • 1
    The Git manual has some diagrams. It seems to be a decent format and certainly familiar to anyone who uses Git and reads that manual. I am not sure if there is a way to generate similar diagrams consistently though.
    – user22815
    Mar 2 '15 at 15:50

If you want standardization I sugest a graphviz with .dot format. It's well known lib for drawing networks and flowcharts. Hope it helps. :)

  • It's a neat tool, but I haven't found a way to have it actually draw branches in terms of trunk/branches. For instance, when you tell it to graph from a "branch" back to trunk (merge), it just draws a line back to the node. That's no way to visualize branching :/ Aug 5 '15 at 17:48
  • 2
    hehe :D try this: git-big-picture, js-graphviz-lib-gitShower, neto command line from git to graphviz and another git graphs. This links all use graphviz for visualization...
    – user157581
    Aug 5 '15 at 20:36
  • @Sinaesthetic : Did some of this links hellps?
    – user157581
    Aug 8 '15 at 15:12
  • Yes it helped, thank you. i didn't find any product , but with all the options, js-graphviz turned out enough for now. I also found pcottle.github.io/learnGitBranching which has some features that can be used in the the same way. Aug 17 '15 at 3:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.