Git From the Bits Up
summary
Demonstrates how to build a Git commit by hand using commands like hash-object and update-index to create a blob, then write-tree and commit-tree, and finally update refs — a commit is literally a tree pointing to blobs. Shows interactive rebase to squash and edit recent commits (four commits briefly become three after resolving a conflict), uses reflog and `git reset --hard` to recover prior states, and notes that sensitive blobs remain until garbage collection; the demos run and are recoverable.
AI-written summary · about
chapters (11)
- 0:00Start
- 2:40The Hipster Commit
- 9:03Default Template Directory
- 10:32Seamus Heaney Translation of Beowulf
- 11:15Story of Beowulf
- 22:33What Is a Commit
- 26:06Switching between Branches
- 28:58Git Log Live
- 33:39Interactive Rebase
- 40:09Ref Log
- 43:08Okay if I Want To Go Back to that Thing before My Rebase I Look at the Ref Log I Go Back in History and I Can See Here Is Where I Started My Interactive Rebase this Clearly Is the Commit that Happened before Then So I'M GonNa Reset Hard to that and Hey Look I Have Four Commits Back and They'Re Different Hashes and I'Ve Got My Spelling Error Back and I Got My Bug Back So I May Be Thinking that Is the Worst Demo of Reset Art Ever You Just Restored Two Bugs Why Would You Do that Hey Look There Could Be a Reason for It I Don't Know I Only Work Here but I Have Now a New Entry in the Ref Log Yes the Password Is Still There so that Was My Good Reason for Rebasing That I Gave








