sidnt / proden

prog ram de sign n otes
0 stars 0 forks source link

a mental model of a git repo. #33

Open sidnt opened 8 months ago

sidnt commented 8 months ago

we start with an empty repo. then we add code.

for example, the linux kernel.

even though it is possible in theory, for the entirety of the linux kernel, to be written in one single file, it is utterly infeasible to do so. so

practically, we almost always have several files put under several folders. seldom do we have only one file that represents the entirety of a codebase.

this, in git lingo, is called the worktree. it's well, like a tree. nodes and leaves. nodes and leaves. branching out.