Loading tutorials
.git. Here you will look at what each entry in it is for, watch it change as you run ordinary commands, and learn5 min readinit, add, commit, log and branch, and that you are comfortable in a Unix-style shell. It also assumes you know that a hash function turns any input into a short, fixed-size fingerprint. The chapter explains the idea that underlies everything else in this t6 min read.git directory layout and the idea of a content-addressable object store from earlier chapters.5 min readgit hash-object -w write a blob. Here you learn the matching read command, git cat-file.5 min readgit hash-object and git cat-file write and read objects. Earlier chapters introdu5 min readgit hash-object and git cat-file. You should be able to write a blob and read it back by its hash. A blob holds file contents and nothing else, so it has no file name and no permissions. A tree adds those.5 min readgit add and git commit. It also assumes you have met blobs and trees: a blob holds file contents, and a tree maps names and modes to blobs and other trees. Here you will look inside a commit, the object that turns a tree into a point in history.5 min readHEAD differs from other refs, and how to create and move them with plumbing comma6 min readgit hash-object, git cat-file and git ls-tree, and know what blobs and trees are. It also assumes a Unix-style shell. The index is the missing link between loose files and the tree you hand to a commit. By the end you will be able to read it, edit it directly5 min readgit cat-file -p output and run commands in a Unix-style shell. Here you will combine those pieces and make a commit without git add or git commit.5 min readgit cat-file. You should also have the plumbing-demo repository with its two commits on main. A tag looks like a simple label, but Git has two kin7 min readgit hash-object and git cat-file. You also need a Unix-style shell and Python 3 for one small script. Here you will learn the two ways Git stores obje6 min readmain and the annotated tag v1. You should also know that loose objects live under .git/objects/xx/ and that git gc creates 6 min read