Switching from dropbox to github–Expected a 'Git' repository but found a 'None' repository
Overview
If you have dropbox selected for a deployment option and want to switch to github you may get the error message: Expected a 'Git' repository but found a 'None' repository at path 'D:\\home\\site\\wwwroot'.
Fix
To switch to Github you need to remove the Application Setting (in Application Settings of the Azure portal) SCM_NO_REPOSITORY. Click on the ‘…’ of that setting and choose ‘Delete’
Ref: https://github.com/projectkudu/kudu/wiki/Deploying-inplace-and-without-repository - search on Dropbox