Review the book "Learning Git" using 'Gitgraph" to represent repositories chapter by chapter with git commands
title: Chapter 4
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchOrder': 0}} }%%
gitGraph TB:
commit id:"red"
title: Chapter 5
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchOrder': 0}} }%%
gitGraph TB:
commit id:"red"
commit id:"orange"
branch feature
commit id:"yellow"
title: Chapter 6
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchOrder': 0}} }%%
gitGraph TB:
commit id:"red"
commit id:"orange"
branch feature
commit id:"yellow"
checkout main
merge feature
%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchOrder': 0}} }%%
gitgraph TD:
subgraph GIT TRADICIONAL (Árvore Complexa)
g1[Commit Inicial] --> g2(Branch main)
g2 --> g3[Feature Branch]
g2 --> g4[Bugfix Branch]
g3 --> g5((Merge Commit))
g4 --> g5
style g5 stroke-dasharray: 5 5
subgraph JUJUTSU (Ecossistema Linear)
j1[Commit Inicial] --> j2[Mudança A]
j2 --> j3[Mudança B]
j3 --> j4[Working Copy @ - Anônimo]
style j4 stroke:#00aaff,stroke-width:2px
end