mermaid.js:コミットグラフ
code:commit-graph-01.mermaid
gitGraph
commit
commit
branch develop
commit
commit
commit
checkout main
merge develop
commit
code:commit-graph-02.mermaid
%%{init: { 'gitGraph': {'mainBranchName': 'main','showCommitLabel': false}} }%%
gitGraph
commit tag:"v1.0.0" type:REVERSE
branch featureA
commit
checkout main
branch hotfix
commit
commit type: HIGHLIGHT
checkout main
merge hotfix
commit tag:"v1.0.1"
checkout featureA
merge hotfix
commit type: HIGHLIGHT
checkout main
merge featureA
commit tag:"v1.1.0"