Preheat the oven to 500°. Heat the olive oil in a large skillet. Add the sliced onions, season with salt and pepper and cook over moderate heat, stirring occasionally, until the onion is softened, about 4 minutes. Add the garlic and cook for 1 minute. Add the wine and cook until evaporated, 3 to 4 minutes. Remove the skillet from the heat.