Skip to content

Instantly share code, notes, and snippets.

@ryanbthomas
Created February 21, 2023 05:09
Show Gist options
  • Save ryanbthomas/9cd1468be77b05212727da70f15d54e5 to your computer and use it in GitHub Desktop.
Save ryanbthomas/9cd1468be77b05212727da70f15d54e5 to your computer and use it in GitHub Desktop.
mermaid gitGraph
```{mermaid}
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchName': 'develop', 'mainBranchOrder': 2}} }%%
gitGraph
commit
branch main
checkout main
commit id: "A"
checkout develop
commit id: "B"
branch rt-add-feature order: 3
checkout rt-add-feature
commit
commit
checkout main
branch rt-hotfix
checkout rt-hotfix
commit
commit
checkout main
merge rt-hotfix
checkout develop
merge main
checkout rt-add-feature
commit
checkout develop
merge rt-add-feature
checkout main
merge develop
checkout develop
branch rt-add-feature-2 order: 5
checkout rt-add-feature-2
commit
commit
checkout develop
merge rt-add-feature-2
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment