title: How can I handle Web.Config file with different environments (dev,test,staging) in Visual Studio Team Services with GIT?
body: <p>I have 3 branches (dev,test,staging) in my web project based on VSTS and GIT. They were modified with specific  <code>&lt;connectionStrings&gt;</code> in <code>Web.Config</code> depending on the environment I'm working on. Additionally, I added manually Services References which points to specific URL and they were added automatically to <code>&lt;applicationSettings&gt;</code> based on the environment as well. </p>
  
  <p>I've been working fine with those tree environments; However, when I started to merge two branches, my <code>Web.Config</code> file was modified and my Services References were changed also. These scenario forced me to add change all the configurations manually, so I'm wondering If there is an easier way to handle merging branches without losing all configuration previously stated or any way to work with multiple environments without doing manual stuff.</p>