git is not ignoring files from the mentioned folder in .gitignore
<p>in our project, the config files are stored into <code>/application/config/</code> folder. In the .gitignore file we have that path mentioned so that our local configuration files do not get pushed to the server. But every time we change the contents of any file in <code>/application/config/</code> folder, git is tracking the changes. We have tried this command <code>git rm --cached name_of_file</code>. While it stopped tracking the changes from the local, after pushing it also deleted the respective file from the server as well. Any help would be appreciated. </p>