Do it the way I quit smoking: keep the mind in control of the body. The mind has to "let" the body eat. Don't keep unhealthy food in the house, and don't let yourself go get bad food.
If you must binge, binge on something good. Those carrot sticks aren't so exciting after the 300th one.
Distract yourself. Hobbies are great. Maybe when you get the urge you drop and do 50 crunches. You'll be too out of breath with a burning gut to want to eat anything!
Give yourself goals and prizes: stick to a good diet for 3 days in a row and buy a new (cd, watch, pair of sneakers...) whatever is moderately neato that you actually want. Stick with it for a whole week and win a better prize... Make One Month and get something even bigger.
I personally think it helps to know what you're going for to keep yourself in line. May not work for you.
I'm almost to a year of not smoking, so we're going to the Canary Islands. clearly, dangling a major prize in front of myself works ; )
[side note: altho I compare smoking to overeating, they are very different and each person has their own demons to fight with either habit]