News for hackers. Stuff that matters.
Re:Confusing Git Terminology by bingemaker on Thursday November 02, 2023 @12:28PM (#38115991)
One thing that has really helped me understand git better is DAG (https://en.wikipedia.org/wiki/Directed_acyclic_graph). Whenever I do `git add <file/folder>`, it is somewhat easier to imagine how new blobs are created and how they are linked.

For beginners it is a fun exercise to understand why empty folders can't be added to git.

Re:Confusing Git Terminology by bonzini on Thursday November 02, 2023 @06:15PM (#38121071)
Not that there is any reason why git has to forbid the existence of empty tree objects.

(Fun fact, all such empty trees would be deduplicated to a single object).