Skip to content
Mermaid templates

Git Branch Graph

Branch and merge history visualisation.

Template previewMermaid
Rendering…

What this template contains

Diagram type
Git graph
Source
14 lines

Make it your own.

gitGraph
    commit
    commit
    branch feature
    checkout feature
    commit
    commit
    checkout main
    merge feature
    commit
    branch hotfix
    commit
    checkout main
    merge hotfix