I have this file that comes with the project, to set up local data that the project needs in order to run.
I committed that file into our git-bitbucket and it generally works but what happens is that when people contribute, the local-config file is also flagged for changes and offered in the commit (where the contributors have to untick that file, otherwise their update will just post local configs that are useless for anyone else)
I tried adding to my .gitignore file the following: config/localenv.csv
but I still see changes there being picked up and suggested for commit...
The way I understand it is that: "the file is already tracked and needs to be untracked" - correct?
I've found: git rm --cached public/app/template.js
(from .gitignore exclude specific file) - but doesn't that delete the file from the repo?
I don't want to delete the file, I still want contributors to be issues that file that mostly works and serves as a convenient template... I just don't want local changes to be picked up and offered for committing.
Sorry if this is answered a million times, I tried searching and couldn't get it to do what I need :(