Best practice – Git + Build automation – Keeping configs separate
That is called content filter driver, and it allows you to declare, in a .gitattributes file (and only for your config files type) a smudge script which will automatically on checkout: combine a config file template file (config.tpl) with the right config file value (config.dev, config.prod, …) in order to produced a non-versioned config file … Read more