Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7712739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:42:26+00:00 2026-06-01T01:42:26+00:00

I recently ran git fsck –lost-found on my repository. I expected to see a

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:42:28+00:00Added an answer on June 1, 2026 at 1:42 am

    Last time I looked at this I stumbled across this thread, specifically this part:

    You can also end up with dangling objects in packs. When that pack is
    repacked, those objects will be loosened, and then eventually expired
    under the rule mentioned above. However, I believe gc will not always
    repack old packs; it will make new packs until you have a lot of packs,
    and then combine them all (at least that is what “gc –auto” will do; I
    don’t recall whether just “git gc” follows the same rule).

    So it’s normal behavior, and does get collected eventually, I believe.

    edit: Per Daniel, you can immediately collect it by running

    git gc --prune="0 days"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently extracted a few subdirectories from a shared git repository with git
Recently I've ran into some security issues where a cracker has found an exploit
I'm using git-svn to work against my company's central Subversion repository. We've recently created
I recently ran some of my ASP pages through HTML Tidy validation and found
I recently ran across a class that had the following field declared: private final
I recently ran into an embarrassing situation with some Flash coding where I had
I recently ran across the notion of Identity Based Encryption (IBE) which seems like
I recently ran into an issue where a query was causing a full table
I recently ran across several objects implemented to handle events with a hard coded
I recently ran into a familiar javascript/jQuery timing bug and spent too long debugging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.