Add the olive oil, minced garlic, rosemary leaves, salt, and pepper to a small saucepan over medium heat. Cook, stirring regularly, for 2-3 minutes until the garlic starts turning golden brown. Use a fine mesh strainer to add the oil to the gnocchi and reserve the garlic rosemary mixture for later.*