Re: Safe way to remove .temp objects?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 26, 2006, 12:24 UTC
- Message-ID
- <7v1wyvfa8p.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <43D8AFF1.2080106@op5.se>
Andreas Ericsson <ae@op5.se> writes:
Show 22 quoted lines
> 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.
What is being asked is not about loose objects but droppings commit walkers make when interrupted.
I think *.temp files are garbage and you can safely remove them. They are not even correct objects.