Skip to content

Commit 19d8174

Browse files
committed
📝 Add Git’s data and storage model
1 parent 964c16d commit 19d8174

File tree

3 files changed

+432
-34
lines changed

3 files changed

+432
-34
lines changed

docs/productive/git/advanced/internals.rst

Lines changed: 95 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,100 @@
22
..
33
.. SPDX-License-Identifier: BSD-3-Clause
44
5-
Git's Datenbank-Interna
6-
-----------------------
5+
Git-Interna
6+
===========
7+
8+
Bisher haben wir uns angeschaut, wie ihr mit Git die unterschiedlichen Zustände
9+
eures Codes verwalten könnt. Hier wollen wir euch nun zeigen, welche
10+
:ref:`Daten- <git-data-model>` und :ref:`Speichermodelle <git-storage-model>`
11+
Git zugrundeliegen.
12+
13+
.. _git-data-model:
14+
15+
Datenmodell
16+
-----------
17+
18+
Ihr werdet Git besser nutzen können, wenn ihr das Datenmodell verstanden habt.
19+
Dabei verwaltet Git vier Arten von Daten:
20+
21+
Objekte
22+
~~~~~~~
23+
24+
.. include:: ../glossary.rst
25+
:start-after: start-object
26+
:end-before: end-object
27+
28+
Commit
29+
::::::
30+
31+
.. include:: ../glossary.rst
32+
:start-after: start-commit
33+
:end-before: end-commit
34+
35+
Tree
36+
::::
37+
38+
.. include:: ../glossary.rst
39+
:start-after: start-tree
40+
:end-before: end-tree
41+
42+
Blob
43+
::::
44+
45+
.. include:: ../glossary.rst
46+
:start-after: start-blob
47+
:end-before: end-blob
48+
49+
Tag
50+
:::
51+
52+
.. include:: ../glossary.rst
53+
:start-after: start-tag
54+
:end-before: end-tag
55+
56+
Referenzen
57+
~~~~~~~~~~
58+
59+
.. include:: ../glossary.rst
60+
:start-after: start-refs
61+
:end-before: end-refs
62+
63+
Index
64+
~~~~~
65+
66+
.. include:: ../glossary.rst
67+
:start-after: start-index
68+
:end-before: end-index
69+
70+
Reflog
71+
~~~~~~
72+
73+
.. include:: ../glossary.rst
74+
:start-after: start-reflog
75+
:end-before: end-reflog
76+
77+
.. _git-storage-model:
78+
79+
Speichermodell
80+
--------------
781

882
.. seealso::
9-
* `Commits are snapshots, not diffs
10-
<https://github.blog/open-source/git/commits-are-snapshots-not-diffs/>`_
11-
* Git’s database internals
12-
13-
* `Part I: packed object store
14-
<https://github.blog/open-source/git/gits-database-internals-i-packed-object-store/>`_
15-
* `Part II: commit history queries
16-
<https://github.blog/open-source/git/gits-database-internals-ii-commit-history-queries/>`_
17-
* `Part III: file history queries
18-
<https://github.blog/open-source/git/gits-database-internals-iii-file-history-queries/>`_
19-
* `Part IV: distributed synchronization
20-
<https://github.blog/open-source/git/gits-database-internals-iv-distributed-synchronization/>`_
21-
* `Part V: scalability
22-
<https://github.blog/open-source/git/gits-database-internals-v-scalability/>`_
83+
Git’s database internals
84+
85+
* `Part I: packed object store
86+
<https://github.blog/open-source/git/gits-database-internals-i-packed-object-store/>`_
87+
* `Part II: commit history queries
88+
<https://github.blog/open-source/git/gits-database-internals-ii-commit-history-queries/>`_
89+
* `Part III: file history queries
90+
<https://github.blog/open-source/git/gits-database-internals-iii-file-history-queries/>`_
91+
* `Part IV: distributed synchronization
92+
<https://github.blog/open-source/git/gits-database-internals-iv-distributed-synchronization/>`_
93+
* `Part V: scalability
94+
<https://github.blog/open-source/git/gits-database-internals-v-scalability/>`_
95+
96+
Packfiles
97+
~~~~~~~~~
98+
99+
.. include:: ../glossary.rst
100+
:start-after: start-packfile
101+
:end-before: end-packfile

docs/productive/git/branch.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ Zweige löschen
337337

338338
``-D`` statt ``-d`` erzwingt die Löschung.
339339

340+
.. _remote-branches:
341+
340342
Entfernte Zweige
341343
----------------
342344

0 commit comments

Comments
 (0)