Let the garlic cool completely, then transfer to a sterilized jar, making sure the cloves are completely covered with oil.
Store-bought minced garlic generally lasts longer than the fresh kind even after it is opened, but how long is that exactly?