There are 2 files tracked by git.
config/template.json
config/test.json
I modified them and want to ignore them forever. I tried to do that by adding them to the root .gitignore
/config
config/template.json
config/test.json
and since it did not work, also to the config .gitignore
template.json
test.json
Problem: when I git pull, it says:
error: Your local changes to the following files would be overwritten by merge:
config/template.json
config/test.json
Please, commit your changes or stash them before you can merge.
Aborting
I want my changes to stay local and be sent to the remote repo. What's going on? Did I not ignore these files? What to do?