git objects hacking

Опубликовано: 26 Июнь 2026
на канале: randomgeocacher
43
1

Shows how git objects in .git/objects fit together; git commit chains, git trees, git blobs.
Demonstrate how read gits using git cat-file and custom python tools.
Demonstrate how to manipulate git object files using brute force to get a specific commit short hash.
Shows how HEAD and refs files can be updated to change which is the current commit.

00:00 mission statement
00:30 create and initialize git
02:21 reading git objects using git cat-file
03:30 duplicate files get same blob hash
03:55 locating git objects
04:26 content addressed database
04:55 tool to read zlib compressed objects
05:28 object file format - type length - zero - content
06:13 tree object file format
07:13 squash git
07:38 commit short hash brute force tool
10:01 brute force for be31337 short hash
10:55 explaining our new commit
11:05 copy new commit to git objects
12:06 locating HEAD and branch references
12:47 updating HEAD manually
13:22 recap mission statement
14:02 explain the brute force tool in more detail
16:20 where the tools are