Ick. Better just shower and brush your teeth then.
Better yet, don’t eat a lot of garlic and onions. If you do, allow at least eight hours for them to work through your system, so there is no more odor.
Of course, if the person you’re with eats a lot of it, you should probably eat it, too. That way, you can’t smell the other person.