I made a careless mistake with one of my sites. While developing it I put it on some temporary domain of mine and thought I would remove it after couple of days. That is why I did not included any robots.txt. Then due to some problems I completely forgot about it and did not do anything for 3 weeks. Now the site is completed and when I checked, google indexed all of its pages on my old domain.
Now I need to launch the site with the same content and I fear Google might think of the actual website as spam. What should I do to rectify it? I cannot wait for it to de-index.
I know it was stupid and will take care of it in future. But for such situations in future, what things I should keep in mind?