This question already has an answer here:
I bought Minecraft yesterday and had so much fun. I heard about skins from my friend and decided to change it. I went to minecraft.net and tried to log-in, but I couldn't. I logged in succesfully at account.mojang.com though. I also bought Minecraft at account.mojang.com too with a gamecard at Walmart. How do I migrate my mojang account to Minecraft?