Cook garlic and olive oil over medium heat in a small skillet until oil starts to bubble. Reduce heat to low and continue to cook until garlic cloves are soft and golden with spots of brown, about 10 minutes. Cool and pour into a jar. (Can be covered and refrigerated for a month or more.)