Skip to content

Git Graphs

Git graphs display commit history, branches, and merges in a visual format that mirrors Git workflows.

gitGraph
commit
branch develop
checkout develop
commit
commit
checkout main
merge develop
commit

Mermaid Studio provides basic support for git graphs:

  • Syntax highlighting for commits, branches, and merges
  • Live preview with branch visualization
  • Error detection for invalid syntax

For complete syntax documentation including cherry-pick, tags, and custom themes, see the Mermaid.js GitGraph documentation.