There are two 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
in file .gitignore:
template.json
test.json
Problem: when I use 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 repository. What's going on? Did I not ignore these files? What to do?