[eluser]merik[/eluser]
[quote author="Jan from Hamburg" date="1364288056"]Why not just feed the .gitignore-file like
Code:
*/application/config/database.php
*/config/development
*/logs/log-*.php
*/logs/!index.html
*/cache/*
*/cache/!index.html
and let an example-file in the folder like database_example.php or config_example.php with all needed info..[/quote]
This is what I ended up doing. This works for the DB stuff, but not for the site config stuff. Each of us is using different configs for their own local instance ( for example, they host it locally as mydomain.com or mydomain.net, and modify their hosts file so that URL will refer to 127.0.0.1), so the configs like the site's base name, etc are not identical.
In the end, I wish there was a way to load configs from an external file, say from within index.php; but there is none.
Thanks anyways. These are all very good comments and suggestions.