What happens inside the .git/objects/ directory before and after a git gc?
Last updated
Before gc: each object is a separate zlib-compressed "loose" file at
.git/objects/ab/cdef...(first 2 hex chars form the directory), stored whole without deltas.After
git gc: objects are bundled into.packfiles plus.idxindexes inobjects/pack/, with similar objects delta-compressed.Unreachable objects (not reachable from any ref or reflog) older than the expiry window are pruned.
- 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/