I’ve got two files: config.yml-sample and config.yml. The first one is being constantly updated, while the second is listed in .gitignore. When I add a line in config.yml-sample and push the commit, I want to have it duplicated in config.yml automatically on pull at other developers’ workspaces.
How do I achieve this?
Either remove
config.ymlfrom.gitignore, or use a hook to update the file fromconfig.yml-sample. It seems to me that apost-checkouthook would be appropriate.