I've tried including the .gitignore file in my directories of my project. In this file is the filename config.php. What I'm trying to do is get it so that each system (Development 1, Dev 2 and Test Server) all have their own config.php files.
But I've placed this file .gitignore in the directory where that file resides but that file is still synced when pushing and still merged. It also pulls it down to the test server when we sync that up. So each time we have to edit that file.
Why is this not working?
 
    