Skip to content

Commit 9b2d302

Browse files
committed
reworked ascii to mermaid git chart
1 parent 9c19ba4 commit 9b2d302

1 file changed

Lines changed: 34 additions & 14 deletions

File tree

12_VersionsverwaltungII.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!--
22
3-
author: Sebastian Zug, Galina Rudolf, André Dietrich & `Lesestein`
3+
author: Sebastian Zug, Galina Rudolf, Volker Göhler, André Dietrich & `Lesestein`
44
email: sebastian.zug@informatik.tu-freiberg.de
5-
version: 1.0.3
5+
version: 1.0.4
66
language: de
77
narrator: Deutsch Female
88
comment: Versionsverwaltung mit Git und GitHub, Automatisierung von Arbeitsabläufen auf dem Versionsserver
@@ -12,6 +12,7 @@ logo:
1212
import: https://github.com/liascript/CodeRunner
1313
https://raw.githubusercontent.com/liascript-templates/plantUML/master/README.md
1414
https://raw.githubusercontent.com/liaTemplates/ExplainGit/master/README.md
15+
https://raw.githubusercontent.com/liaScript/mermaid_template/master/README.md
1516
1617
import: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/config.md
1718
@@ -48,20 +49,39 @@ die Stabilität des Gesamtsystems zu gefährden. Gleichzeitig haben die Entwickl
4849

4950
Wie sieht das zum Beispiel für unsere Kursmaterialien aus?
5051

51-
```ascii
52-
53-
vSoSe2019 vSoSe2020
54-
main O----------------------------------------- .... ---------O
55-
\ ^
56-
\ Offizielle Versionen /
57-
SoSe2020 \ O-->O O ---->O
58-
\ ^ \ /
59-
v / v /
60-
SoSe2020dev O->O---->O---->O->O---->O-->O->O ....
61-
Vorlesung Vorlesung
62-
00 01
52+
```mermaid @mermaid
53+
---
54+
title: "Branches in Git"
55+
---
56+
%%{init: {'theme': 'base', 'themeVariables': { 'gitGraph': { 'colors': ['#f9f', '#bbf', '#fff'] } } }}%%
57+
gitGraph
58+
commit id: "vSoSe2019"
59+
branch SoSe2020
60+
checkout SoSe2020
61+
commit
62+
branch SoSe2020dev
63+
checkout SoSe2020dev
64+
commit id: "Vorlesung 00"
65+
commit
66+
commit
67+
checkout SoSe2020
68+
commit
69+
checkout SoSe2020dev
70+
commit
71+
checkout SoSe2020
72+
commit
73+
merge SoSe2020dev id: "Offizielle Versionen"
74+
checkout SoSe2020dev
75+
commit
76+
checkout SoSe2020
77+
commit
78+
commit
79+
checkout main
80+
commit
81+
merge SoSe2020 id: "vSoSe2020"
6382
```
6483

84+
6585
Ein Branch in Git ist einfach ein Zeiger auf einen Commit zeigt. Der zentrale Branch wird zumeist als `master`/`main` bezeichnet.
6686

6787
### Generieren und Navigation über Branches

0 commit comments

Comments
 (0)