title: Best Approach Switching Between Prod and Dev Configurations in Git
body: <p>We are using Git and as usual, our work flow is development > staging > production.</p>
  
  <p>The project has several config files. During development, configs point to development databases. However, after changes in development and I'm ready to deploy, the configs will need to change and point to production databases. </p>
  
  <p>During the next round of changes, I will need to change configs again to point to development databases. </p>
  
  <p>This cycle then keeps repeating itself, and it's tedious since I have 3 config files (best I can do is 2, since one config file is for a particular library).</p>
  
  <p>Is there a better way to do this?</p>