Using SourceTree and BitBucket for a Wordpress project.
Checked in wordpress wp-config.php file which holds the details to the database for the online/staging version of our site.
I want this file to stay in the repository but NOT be checked out with the rest of the files, as it overwrites the local version which has different database credentials.
How can I stop this? Every time I pull, it overwrites my version of the file. I tried "stop tracking" but it wants me to commit this to the main respository, which will obviously affect the file which is checked in.
Users cloning the project should NOT check out the wp-config file with the rest of the files, and it should leave their own in place.