I have a repo for automatic report generation. One of the requirements is to put a signature there so I want to make the file with example signature. Then push it to the remote and finally stop to track this file so every new user can change the example but will never push his signature to the remote.
I assume that new user is not advanced enough to run (or remember about running) the command:
git rm --cached <file>
I would like to apply the changes to all users to realise scenario:
- new user clones repo
- the file is in the repo
- user changes the file
- no extra command is given
- git doesn't track the change
Is it possible?
I tried solution given in this topic and they are making the file not available for new users who clone the repo.
@edit I decided to make a workaround. I left tracked example file and added signature file to .gitignore. Now it is the task for software to check if signature file is available and replace the path to it.