You can keep the garlic confit safely in the coldest part of the refrigerator for up to 2 weeks. In the alternative, you can also freeze them in an ice cube tray and use them whenever you need them, just keep in mind that the oil never freezes completely so be sure to put the ice tray on top of another tray to avoid spilling.