# git-fsck-cache cleaning

2 messages from 2005-08-02 to 2005-08-02. Participants: Jon Loeliger, Johannes Schindelin.
Thread: https://gitlist.dev/t/1397

## Jon Loeliger, 2005-08-02 22:24

Subject: git-fsck-cache cleaning
Message-ID: <1123021481.2614.6.camel@cashmere.sps.mot.com>
URL: https://gitlist.dev/e/1123021481.2614.6.camel%40cashmere.sps.mot.com

```
Hi GITers,

So, after you dink around in a GIT tree for a while,
and you discover little bloblets left around by using
git-fsck-cache, what do you do?  How can you clean up
afterwards?

Specifically, I have a GIT tree that shows some dangling
blobs that are unreferenced in my tree.  Not sure how the
got there, but I've verified through git-cat-file that
the contents of many of those blobs are actually validly
represented in my tree.  Yet, fsck suggests they dangle.

So, for each of the various fsck warnings, what can be
done to clean things up and yet maintain integrity in
the tree?  I have apparently unreferenced blobs.  I should
be able to just "rm .git/objects/xx/<sha1>" and be done
with them, right?  What about the other warnings?

Thanks,
jdl

```

## Johannes Schindelin, 2005-08-02 23:06

Subject: Re: git-fsck-cache cleaning
Message-ID: <Pine.LNX.4.63.0508030106130.21191@wgmdd8.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0508030106130.21191%40wgmdd8.biozentrum.uni-wuerzburg.de
In-Reply-To: <1123021481.2614.6.camel@cashmere.sps.mot.com>

```
Hi,

do you mean git-prune-script? It is documented in 
Documentation/git-prune-script.txt.

Ciao,
Dscho

```
