3 ms·
One thing that has really helped me understand git better is DAG (https://en.wikipedia.org/wiki/Directed_acyclic_graph https://en.wikipedia.org/wiki/Directed_ac
by bingemaker 3y ago
One thing that has really helped me understand git better is DAG (https://en.wikipedia.org/wiki/Directed_acyclic_graph 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.
- deleted 3y ago[deleted]
- bonzini 3y agoNot 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).