I used to have terrible yeast infection problems and I handled them and got rid of them for good by taking all sugars out of my diet for at least one month. That means fruit and any kind of sugars of any kind, including all alcohol. It is hard but it wil be worth it. Yeast infections are never just vaginal. They are more than likely all through your digestive system and healing the gut helps heal the vagina. I've even had them in my throat (thrush). Then, find a good probiotic that is refridgerated. In my experience, yogurt does nothing. It tastes ok but probiotics are much, much stronger. You can take them orally and vaginally. There is a huge difference between good and bad brands. My naturopath recommends Pharmax brand. Use the high potency for at least a month and then switch to maintenance for a few months afterward, as you reintroduce sugary foods back into your diet. This will heal your gut and help it recover and help the rest of your body, too. I buy mine from my naturopath but you can also order it from the company or see if it is sold anywhere near you. It is pricey but worth.
http://www.pharmaxllc.com/
Then, after you are healed, if you ever have to take antibiotics again, take the pharmax hlc maintenance the whole time. It prevents yeast infections. I had systemic yeast infections for years after being over treated by allergists in the 1980s. It took a year or more to heal my gut this way but I have been yeast free for nearly 10 years and I taken antibiotics a handful of times since with no recurrence.
I've never had any luck with garlic but I suppose it cannot hurt to try except that if your vagina is raw and sensitive, it may not feel good. Yeast infections are a result of an inbalance of bacteria. Probiotics replace the bacteria that you need and are missing, thereby killing the yeast. Garlic might help the immune system but I have never heard of it helping the actual yeast infection.