我在CodeIgniter站点中有几个文件,希望在存储库中有这些文件,但不跟踪任何更改。
例如,我将这个框架的新安装部署到新客户端,我希望下载以下文件(它们的默认值是CHANGEME),而我只需要对此客户端进行特定的更改(数据库凭据,电子邮件地址信息,自定义CSS)。
// the production config files i want the files but they need to be updated to specific client needs
application/config/production/config.php
application/config/production/database.php
application/config/production/tank_auth.php
// index page, defines the environment (production|development)
/index.php
// all of the css/js cache (keep the folder but not the contents)
/assets/cache/*
// production user based styling (color, fonts etc) needs to be updated specific to client needs
/assets/frontend/css/user/frontend-user.css
目前,如果我跑步
git clone git@github.com:user123/myRepo.git httpdocs
然后编辑上面的文件,一切都很好。直到我发布修补程序或补丁并运行git pull。我的所有更改都将被覆盖。