mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	Fix example for Git diagrams
This commit is contained in:
		@@ -13,37 +13,37 @@ These kind of diagram are particularly helpful to developers and devops teams to
 | 
			
		||||
Mermaid can render Git diagrams
 | 
			
		||||
 | 
			
		||||
```mermaid-example
 | 
			
		||||
    ---
 | 
			
		||||
    title: Example Git diagram
 | 
			
		||||
    ---
 | 
			
		||||
    gitGraph
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
       branch develop
 | 
			
		||||
       checkout develop
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
       checkout main
 | 
			
		||||
       merge develop
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
---
 | 
			
		||||
title: Example Git diagram
 | 
			
		||||
---
 | 
			
		||||
gitGraph
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
   branch develop
 | 
			
		||||
   checkout develop
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
   checkout main
 | 
			
		||||
   merge develop
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
```mermaid
 | 
			
		||||
    ---
 | 
			
		||||
    title: Example Git diagram
 | 
			
		||||
    ---
 | 
			
		||||
    gitGraph
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
       branch develop
 | 
			
		||||
       checkout develop
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
       checkout main
 | 
			
		||||
       merge develop
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
---
 | 
			
		||||
title: Example Git diagram
 | 
			
		||||
---
 | 
			
		||||
gitGraph
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
   branch develop
 | 
			
		||||
   checkout develop
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
   checkout main
 | 
			
		||||
   merge develop
 | 
			
		||||
   commit
 | 
			
		||||
   commit
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
In Mermaid, we support the basic git operations like:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user