Hang or drape your gasoline-soaked clothes outside in a sunny spot for a little while if it is a nice day. This airing out can help reduce some of the gasoline fumes.
Fill a bucket or tub, depending on the size and amount of laundry affected, with cold water. The bucket needs to be big enough to submerse the items entirely in water.
Pour in the Coca-Cola and baking soda and mix it around. You can use your hand, a mixing spoon or just slosh the bucket around a bit.
Add in your clothing and allow it to soak overnight, at a minimum. Allow it longer to soak if overnight does not eliminate the odor.
Remove the clothing from the solution and place in the washing machine. Wash as usual.
Line dry the clothes in case there is any trace of gasoline left; if so, repeat the treatment until the odor is gone.