I used to hit those times where I'd lose a few kgs and then go back to my old foods. I think maybe many of us have. The good news is that you are noticing you are doing it and want to change. We all have bad days (I had a bad month last month and a bad night tonight) but that is to be expected. No one is perfect. The next time you feel a binge coming, remember your goal and ask yourself if it is worth putting the weight back on, especially if it took a week or more to lose it!
The journey you are starting is a lifestyle change and it is going to take time to get to your ideal weight. It takes practice to control the need to binge and you will get better at saying no when each occasion arises. As long as you stick with it and you don't punish yourself for a bad day-or give up-you will achieve what you are setting out to do