I want to work from several places - for example, on a website. Each PC has its own project repository (preferably Mercurial, Git otherwise), but each computer needs its own configuration settings for testing locally, for example base_url. What is the best option for a version of this configuration file that will also contain global configuration settings?
Repository Information:
- BitBucket repo with config.php: global configuration + configuration for live server.
- Repo pc A with config.php: global configuration + configuration for PC A
- Repo pc B with config.php: global configuration + configuration for pc B
When I check the BitBucket repository, I get the full live server configuration. If I need to make corrections and test them locally, I change the settings in real time to specific PC settings. Then fix the error or something else, commit and click on BitBucket. At the moment, the settings for a specific computer will be redirected to the global BitBucket repository: not what I want.
So what is the best way to do this right?
source share