Loading tutorials
Intermediate · Mid: 14 chapters · 36 min read. States assumed prerequisites
Start readinggit init, add, commit, log and branch, and that you are comfortable in a Unix-style shell. You will open the .git directory of a fresh repository and learn what each part is for. Later chapters work with the object database in detail..git directory and the idea of a content-addressable store from the earlier chapters.git hash-object -w write a blob. Here you learn the reverse: reading any object back out of the object database.git hash-object and git cat-file in the previous chapters.git hash-object and git cat-file write and read objects. Here you will see how Git adds file names and directory structure on top of blobs.git cat-file -p output and know that a tree object lists names, modes and hashes. A commit is the object that ties a tree to a point in history.git commit and that you have seen blobs, trees and commits as objects. A commit is an object with a 40-character hash, and nobody wants to type that hash. Refs give those hashes readable names.git init, git add and git commit. It also assumes you know that git hash-object -w stores a blob and that git cat-file -p prints an object. If you skipped those, read the earlier chapters on blobs and cat-file first.git commit runs for you.main points at a commit. You also need user.name and user.email set, because annotated tags record a tagger.plumbing-demo repository built earlier.