From: Steffen Prohaska Date: Sun, 08 Feb 2009 18:24:33 GMT Subject: Re: gc considered dangerous Message-ID: In-Reply-To: <200902081704.59439.robin.rosenberg.lists@dewire.com> On Feb 8, 2009, at 5:04 PM, Robin Rosenberg wrote: > söndag 08 februari 2009 15:56:38 skrev Johannes Schindelin: >> Hi, >> >> On Sun, 8 Feb 2009, Robin Rosenberg wrote: >> >>> I've seen this. Running git gc on Windows, while having Elipse >>> open can >>> kill your object database. >> >> You had me really scared with the mail subject! > > Losing a repo *is* scary., especially if your boss is the one losing > it. > That should simply not happen unless there is a disk failure. > Fortunately > I believe the two lost branches did not contain anything useful. If you have a backup of the corrupted repository right after it got corrupted, you can create an index by running "git index-pack" on the pack that is lacking an index. This might rescue the lost branches. Steffen