How do I get rid of a garlic allergy?

Allergist evaluates. Garlic allergy can occur as a skin allergy, in which case wearing non-latex gloves when cooking should prevent reactions. Allergic reactions from eating garlic (or other foods) can vary in severity. Anaphylactic (rapidly progressing severe reactions) reactions need treatment with Epipen (epinephrine) self-injections. An allergist can look for what truly is causing the allergy, and see if treatment is available.
Garlic Allergy. Sadly, you don't get rid of food allergies. It is possible to outgrow them if you are young enough. But seeing an allergist for testing might be the best bet since the rate of true food allergy is much lower than what the public perception is.