Been there! Most recently was more recent than I'd like, to be honest. One piece of advice is to realize that you really are in control. That was hard for me. You feel like you're losing that argument with yourself, but that's really because (for me) when I was going to buy that crappy food and binge, it really was what I wanted to do.
And it was REALLY hard to stop myself from doing it. But I had to own the fact that there really is only me in my head
. And that excuses and "but I couldn't help myself" only went so far when I was in tears afterwards (and feeling rather crappy physically).
The first time I stopped myself from bingeing was incredibly powerful. I didn't give in to that urge, I made a healthy choice - that sucked at the time, but at the same time gave me confidence to do it again. Or to do something like not have lunch at McDonald's and find a healthier option.
I still struggle with it, but I am in control now and I don't even feel the urge to binge as often anymore. Good luck.