3 ms·
>A git branch is a pointer. It can point at whatever. Not really, a branch is only a pointer to a commit, not to trees or blobs. The commit in turn points to
by dessimus 3y ago
>A git branch is a pointer. It can point at whatever.
Not really, a branch is only a pointer to a commit, not to trees or blobs.
The commit in turn points to 1 or more parents (unless its the root-commit) and to the tree object that represents the state of the workspace at the time commit and contains pointers to blobs (files) and other trees (subdirectories).