{"thread":{"id":"3155","subject":"Safe way to remove .temp objects?","startedAt":"2006-01-26T09:35:07Z","lastAt":"2006-01-27T10:14:33Z","messageCount":4,"participants":["Erik Mouw","Andreas Ericsson","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"15140","messageId":"20060126093507.GA5118@harddisk-recovery.nl","threadId":"3155","inReplyTo":null,"subject":"Safe way to remove .temp objects?","fromName":"Erik Mouw","fromEmail":"erik@harddisk-recovery.com","sentAt":"2006-01-26T09:35:07Z","receivedAt":"2006-01-26T09:35:07Z","isPatch":false,"sender":{"key":"erik@harddisk-recovery.com","avatar":null},"body":"Hi,\n\nAfter a git repack, git count-objects reports there are still 20\nobjects in the repository. It looks like those are temp objects:\n\n  erik@arthur:~/git/linux-2.6 > ls .git/objects/??/\n  .git/objects/14/:\n  d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp\n\n  .git/objects/1a/:\n  d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp\n\n  [...]\n\nIs there a git command to remove those objects in a safe way, or can I\njust rm them without \"harming\" git??\n\n\nErik\n\n-- \n+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --\n| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands\n| Data lost? Stay calm and contact Harddisk-recovery.com\n"},{"id":"15143","messageId":"43D8AFF1.2080106@op5.se","threadId":"3155","inReplyTo":"20060126093507.GA5118@harddisk-recovery.nl","subject":"Re: Safe way to remove .temp objects?","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2006-01-26T11:18:09Z","receivedAt":"2006-01-26T11:18:09Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Erik Mouw wrote:\n> Hi,\n> \n> After a git repack, git count-objects reports there are still 20\n> objects in the repository. It looks like those are temp objects:\n> \n>   erik@arthur:~/git/linux-2.6 > ls .git/objects/??/\n>   .git/objects/14/:\n>   d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp\n> \n>   .git/objects/1a/:\n>   d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp\n> \n>   [...]\n> \n> Is there a git command to remove those objects in a safe way, or can I\n> just rm them without \"harming\" git??\n> \n> \n\n\t$ git prune-packed\n\nWhen you repack, you can run\n\n\t$ git repack -d\n\nto remove loose objects when you're done packing.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"15149","messageId":"7v1wyvfa8p.fsf@assigned-by-dhcp.cox.net","threadId":"3155","inReplyTo":"43D8AFF1.2080106@op5.se","subject":"Re: Safe way to remove .temp objects?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-26T12:24:06Z","receivedAt":"2006-01-26T12:24:06Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Andreas Ericsson <ae@op5.se> writes:\n\n> Erik Mouw wrote:\n>> Hi,\n>> After a git repack, git count-objects reports there are still 20\n>> objects in the repository. It looks like those are temp objects:\n>>   erik@arthur:~/git/linux-2.6 > ls .git/objects/??/\n>>   .git/objects/14/:\n>>   d6545767f5103b5ef4702bc8fffa18dbe32ce1.temp\n>>   .git/objects/1a/:\n>>   d37b580be4215f1b0927b7560f5e8b8d1bc0fa.temp\n>>   [...]\n>> Is there a git command to remove those objects in a safe way, or can\n>> I\n>> just rm them without \"harming\" git??\n>>\n>\n> \t$ git prune-packed\n>\n> When you repack, you can run\n>\n> \t$ git repack -d\n>\n> to remove loose objects when you're done packing.\n\nWhat is being asked is not about loose objects but droppings\ncommit walkers make when interrupted.\n\nI think *.temp files are garbage and you can safely remove\nthem.  They are not even correct objects.\n"},{"id":"15164","messageId":"20060127101433.GB3673@harddisk-recovery.com","threadId":"3155","inReplyTo":"7v1wyvfa8p.fsf@assigned-by-dhcp.cox.net","subject":"Re: Safe way to remove .temp objects?","fromName":"Erik Mouw","fromEmail":"erik@harddisk-recovery.com","sentAt":"2006-01-27T10:14:33Z","receivedAt":"2006-01-27T10:14:33Z","isPatch":false,"sender":{"key":"erik@harddisk-recovery.com","avatar":null},"body":"On Thu, Jan 26, 2006 at 04:24:06AM -0800, Junio C Hamano wrote:\n> What is being asked is not about loose objects but droppings\n> commit walkers make when interrupted.\n\nThat's indeed what I meant.\n\n> I think *.temp files are garbage and you can safely remove\n> them.  They are not even correct objects.\n\nIt looks like it was safe to remove, all git commands I tried just\nwork.\n\n\nThanks,\n\nErik\n\n-- \n+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --\n| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands\n"}]}