If you have automatic deploys enabled and you want to switch Git hosts, make sure to disable automatic deploys first before adding the new Git host.
If you make a mistake and forgot to do this, you can re-enable the first host again and disable the automatic deploys. For example, if you originally have a Github app and automatic deploys enabled, and you change your repository settings to Bitbucket you can re-connect the Github app and save changes. Next, disable the automatic deploys and then switch to your new Bitbucket host, make sure the new repo info is for Bitbucket, save changes and then re-enable automatic deploys.