What is a Gitgraph?
A Git graph (or Git diagram) visualizes the branching and merging history of a Git repository. It's perfect for explaining complex workflows, documenting release strategies, or teaching Git. Describe your Git commands, and we'll draw the graph.
How to Create a Git Graph in 3 Simple Steps
- 1. **Describe Git Commands:** Type out the sequence of Git actions. For example, 'commit. branch feature-A. commit. checkout main. commit. merge feature-A.'
- 2. **Generate with AI:** Press 'Send', and the AI will generate the Mermaid.js code for a Git graph representing those actions.
- 3. **Export & Use:** Your Git history is now visualized. Copy, share, or continue adding more commits and branches.
Frequently Asked Questions
Why visualize a Git graph?
It helps teams understand the history of a project, clarifies complex merge scenarios, and makes it easier to explain branching strategies like GitFlow.
Can I add commit messages or tags?
Yes. You can say 'commit with message "Initial setup" and tag "v1.0"' to add more detail to your graph.