I have my software in remote server repository and use the respository to create new instances for new customers which are managed by git. If I make changes in a customer instance, I push the changes back to the server.
The problem I have is that the server repository contains a few files that are needed initially by each customer. These are then personalised in the customer instance. I want these files when I clone the instance initially, but when I push back to the server I want these files to be ignored.
Using .gitignore with these filenames means the files are not created in the initial clone (I want them to be created), but they are ignored when I push back to the server (which is what I want).
So my question is: Can I include these files in the clone, but exclude them when pushing?