if you’re growing indoors, it’s pretty easy to force garlic to grow out of season. really, it comes down to making sure it has adequate light, which if you’re in a terribly cave-like apartment, means a grow light with a timer. Garlic was among the easiest things to force when I was first starting out with my apartment’s living wall- sharing that space with salad greens and herbs.
As a side note, if you only have one pot, you can also grow them along side some other fresh herbs like thym and rosemarry. (depending on the pot, it might get a little too crowded for big leafy things like parsely and cilantro/coriander)