3 ms·
> The main reason I wanted to make this was to give folks some intuition for how git works under the hood. After all, git commits really are very similar to fol
by avgcorrection 3y ago
> The main reason I wanted to make this was to give folks some intuition for how git works under the hood. After all, git commits really are very similar to folders – every Git commit contains a directory listing of the files in it, and that directory can have subdirectories, etc.
> It’s just that git commits aren’t actually implemented as folders to save disk space.
Okay. So what. People are used to archive formats.
> git worktree also lets you have multiple branches checked out at the same time, but to me it feels weird to set up an entire worktree just to look at 1 file.
But one directory per commit is less weird.