Re: Safe way to remove .temp objects?

From: Andreas Ericsson <ae@op5.se>
Date: 2006-01-26 22:18:09
Erik Mouw wrote:
> Hi,
> 
> After a git repack, git count-objects reports there are still 20
> objects in the repository. It looks like those are temp objects:
> 
>   erik@arthur:~/git/linux-2.6 > ls .git/objects/??/
>   .git/objects/14/:
>   d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp
> 
>   .git/objects/1a/:
>   d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp
> 
>   [...]
> 
> Is there a git command to remove those objects in a safe way, or can I
> just rm them without "harming" git??
> 
> 

	$ git prune-packed

When you repack, you can run

	$ git repack -d

to remove loose objects when you're done packing.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 26 22:19:07 2006

This archive was generated by hypermail 2.1.8 : 2006-01-26 22:19:15 EST