void.dev
/
lab
/
games
/
git-objects
~/blog
~/explore
~/about
~/lab
git object model
Visualize how Git stores blobs, trees, commits, and refs. Try
git init
to start.
$ git command
run
git init
git add README.md
git add .
git commit -m "init"
git branch feature
git checkout feature
git commit -m "feature"
git merge feature
output
Run
git init
to start
▶ auto demo
↺ reset
object graph
Run git init to create a repository
.git/objects/
empty — no objects yet