Lecture 9: Git Flashcards

(14 cards)

1
Q

Welcher Typ von System ist Git?

A

Verteiltes Versionsverwaltungssystem (DVCS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Ist Git ein Backupsystem?

A

Nein – Redundanz hilft, ersetzt aber kein echtes Backup.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Löst Git Konflikte automatisch?

A

Nein, Zusammenführungs-Konflikte brauchen manuelle Entscheidung.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Was speichert ein commit?

A

Snapshot (tree) + Author, Committer, Message, Parent-Hashes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Was repräsentiert ein branch?

A

Einen beweglichen Zeiger auf einen Commit – eigene Entwicklungslinie.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Kommando, um neuen Branch anzulegen und sofort zu wechseln?

A

git checkout -b <name></name>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Drei Ebenen im Git-Workflow?

A

Workspace → Index (staging area) → lokales Repo → (Push) Remote

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Dateien in den Index legen?

A

git add <file></file>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Snapshot erstellen?

A

git commit (ggf. -m “Msg”).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Änderungen ins Remote-Repo übertragen?

A

git push

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Unabhängig Updates holen, ohne zu mergen?

A

git fetch (Pull = Fetch + Merge).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Zweck einer .gitignore?

A

Muster für Dateien/Verzeichnisse, die Git ignorieren soll (z. B. *.o, Build-Artefakte).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Best-Practice für den master- oder main-Branch?

A

Sollte immer lauffähigen Stand enthalten.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Was zeigt HEAD?

A

Aktuellen Checkout-Zeiger – meist auf einen Branch-Tip, manchmal detached.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly