Started a site with godaddy URL in staging before client changed DNS. Site fully set up and running in staging. Set up the domain after client changed A record. Pushed staging to production with primary URL as the correct one. If you go to the URL the site appears, but if you try to login to wp-admin from the URL or from godaddy managed wordpress dashboard it gets stuck on choose a theme like we are starting a new installation, but without the option to do anything.
Made changes in staging and pushed to production again. SAME problem, stuck in the choose a theme once again. What can be done where to keep this from happening EVERY time we make changes in staging and push to production?