In git, what is the difference between a sagging latch and a dangling blob?

When I do git fsck, I see a list of dangling objects. Some of them are called dangling, while others are called dangling blobs. I was wondering what the exact difference is between the two.

+3
source share
1 answer

Git creates a blob for each file in the repository (if only the same content already exists). Dangling blobs are blobs that are not associated with any commit and are not very useful if your repository was not damaged in the event of a disk failure, etc.

You can see their contents using git show <blob SHA-1>.

, , HEAD . , , git cherry-pick <SHA-1> git reset <SHA-1>.

Scott Chacon Git .

+4

All Articles