For very short term you can make garlic infused oil and keep on the countertop in a sealed jar to use for a day or two. Kept in the fridge, submerged in olive oil they will stay well for 1-2 weeks. However for long term storage of garlic in oil you should pour into ice cube trays, freeze, and transfer to freezer bags. We explain all the methods here.