I recently ran git fsck --lost-found
on my repository.
I expected to see a couple dangling commits, where I had reset HEAD
.
However, I was surprised to see likely over several thousand dangling blob messages.
I don't believe anything is wrong with my repository, but I'm curious as to what causes these dangling blobs? There's only two people working on the repository, and we haven't done anything out of the ordinary.
I wouldn't think they were created by an older version of a file being replaced by a new one, since git would need to hold onto both blobs so it can display history.
Come to think of it, at one point we did add a VERY large directory (thousands of files) to the project by mistake and then remove it. Might this be the source of all the dangling blobs?
Just looking for insight into this mystery.