I was new to Git and had added some files that I don't want tracked (a config file and some caching files). I am familiar with the process of adding the file to .gitignore and then running git rm --cached <file>
so that it removes it from git but keeps the local file.
Then when I push this change and pull on remote it removes the file on remote. Since this is a config file that needs to be there, is there any solution that will basically apply the --cached option when doing a git pull? Or does this just have to be done manually?