I am a new git user.
Following some difficulty, I was able to get a solid workflow going so that I can push from my local repository to my website.
A problem however has come up. I develop on wamp and push to the site. When I push, my website database settings are being overwritten. Is there a way to use git selectively to avoid this.
I am using codeigniter, so specifically I would like to push the entire project the first time and then avoid pushing the application/config directory in future pushes
Thanks ,
Bill
Database settings should not be in version control. Keep the settings in an untracked file instead. And of course you can have a similar file to show you which options are available.
So if the settings are in
settings.conf, you can have a tracked filesettings.conf.example.