Place the ginger and sugar in a jar and pour in sufficient vinegar or wine to just cover the ginger.
Seal the jar with an airtight lid, refrigerate and wait for the ginger to turn slightly pink before using - this will depend on the freshness of your ginger, but it’s generally a few days.