What is the difference between a blob object and a tree object?
Last updated
A blob stores only the raw contents of one file, with no filename or path. Identical content anywhere is one shared blob.
A tree is a directory listing: each entry has mode, type, SHA, and name, pointing to blobs or subtrees.
Filenames live in trees, so renaming a file changes the tree but reuses the same blob.
- https://www.reddit.com/r/cscareerquestions/comments/bxxwfc/what_are_some_behavioral_questions_you_have_been/
- https://www.reddit.com/r/rails/comments/1shfrbq/3_years_rails_dev_but_failed_basic_interview/
- https://www.reddit.com/r/cscareerquestions/comments/u7z2xh/how_often_do_developers_look_at_git_trees/