I have set up dev, staging, and live versions of a website which access different databases. All 3 sites are identical except for the config file. (and the changes I am working on)
The config file is where I specify which database I am accessing (test, staging, live) and I need this file in the repo because the site won't work without it.
But now every time I git pull it changes my database. If I put the config file in my .gitignore I get a merge complaint because the config is different.
What do I do?