protect git files/directories

This will make it way easier to deploy the application on your environments. You wont have to change your settings every time. When you add a new environment, just createy (copy) a CLEAN config-file, adapt it and check it in. You will only have to copy it once to config.php per stage and with any new deployment you wont have to change db-pass and stuff like that.