Eating Issues

I have a bad tendency to binge eat whenever I'm upset, stressed, anxious, etc. so much so that it's become a bad habit that I can't control anymore. I'll always feel like sh*t after and I then let myself go hungry and I don't eat. I don't know how to get a control over it.