Re: gc considered dangerous
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Feb 8, 2009, 18:24 UTC
- Message-ID
- <BD926B5C-60C2-4A62-9BBC-E31CB26B9BAC@zib.de>
- In-Reply-To
- <200902081704.59439.robin.rosenberg.lists@dewire.com>
On Feb 8, 2009, at 5:04 PM, Robin Rosenberg wrote:
Show 16 quoted lines
> 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