I sometimes work with Codeigniter, and after I’m done developing on the local site, I need to migrate the files to the server. All the files in the /config/ folder need to be changed to match the Server settings. It’s not right to make an entire commit for these changes, do I simply make Git ignore these files altogether, or is there a way to track these changes and apply them with Git at the right moment?
I sometimes work with Codeigniter, and after I’m done developing on the local site,
Share
You could keep versioned:
@@PORT_NUMBER@@)Note: that supposes your template config file has a recognizable content (the filter doesn’t have a name or path of the file). See “Git equivalent of subversion’s
$URL$keyword expansion” for more on the limitation of git content filter driver).