Rebuilding index structure after git mishap