git: Save progress from a corrupted git repo