First of all, weight fluctuations are entirely normal. Let's look at it mathematically.
1 lb of fat is around 3500 calories. In order to gain 1 lb of weight, you have to eat 3500 OVER your maintenance level (the number of calories you'd have to eat to maintain your current body weight.
Since 1 kg = 2.2lb, in order to gain 1 kg of fat, you would've had to have eaten 7700 calories in addition to your maintenance calories.
Since I
really doubt you did that, it's probably either water weight or hormonal. Did you have a lot of sodium yesterday? Did you do an intense workout (aka are your muscles sore)? Is your period coming close? Are you taking any medications that may affect your hormones? Are you stressed? Any of these things can make you gain weight, but it's not "real" weight in that it's not actually fat.
Also, for whatever or no reason, sometimes you'll just uptick, even if you do everything else right. Just don't dwell on it, and if it's freaking you out, you can try only weighing yourself once a week.
--
You can also track what you eat to keep yourself accountable for your snacks, but snacking by itself isn't necessarily bad, as long as you're snacking on healthy stuff. It helps keep your blood sugar level, and it helps to keep you from overeating on your next meal.
You can use
this site to calculate your Basal Metabolic Rate (the number of calories you need just to keep your vital organs running), then use the link under it that says 'Harris - Benedict Formula' to calculate your maintenance calories with your activity level. Finally, subtract 500 calories to give you what you should be eating to lose 1 lb per week, 750 calories to lose 1.5lb per week, or 1000 calories to lose 2 lb per week (you shouldn't be aiming to lose more than 1% of your body weight per week). If the numbers fall below your Basal Metabolic Rate (the first number), then eat at the BMR - you shouldn't eat below that because it is the very minimum to eat in order to survive, and your body will panic if it's not getting enough energy to sustain that.