An overly sweet wine is not good, red wines and dry white wines with a lower sugar content are best.
Peel and cut the Garlic cloves into quarters. Remove roughly 1/5th the contents of a bottle of suitable wine. After you've done that, if you are still sober enough, fill the bottle with the peeled and quartered cloves till the liquid level nears the top. You should leave slightly less than 1/2" head space.
Seal the bottle, shake vigorously and then refrigerate, do not allow it to sit at room temperature. From time to time, preferably at least once a day give the bottle a healthy shake.
At least once a week remove the cap to allow the excess gases produced by the interaction of the garlic sulfur with the alcohol to vent.