Loading tutorials
git 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.2 min read.git directory and the idea of a content-addressable store from the earlier chapters.2 min readgit hash-object -w write a blob. Here you learn the reverse: reading any object back out of the object database.2 min readgit hash-object and git cat-file in the previous chapters.3 min readgit 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.3 min readgit 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.2 min readgit 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.2 min readgit 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.3 min readgit commit runs for you.2 min readmain points at a commit. You also need user.name and user.email set, because annotated tags record a tagger.3 min readplumbing-demo repository built earlier.3 min read