Up until now I have been using gitignore to ignore my web.congfig and web.release.config files so that my connections strings (including passwords) do not get stored in the git repository.
This has been fine with changes to the web.config being passed around on encrypted removable media.
BUT I have just started to look at using continuous integration and storing my code on Visual Studio Team Services. For this to work (unless you can suggest a fix) I must have the web.config included as part of the project.
I am hosting the application on a windows server (in-house) with MSSQL DB and a connection to an Oracle DB on different server.
I'm not the most advanced developer but holding my own so far. All support greatly welcomed.