I want gitignore a file that is already committed and pushed to master;
Meaning, I want to ignore any change of that file.
But after I add the path in gitignore, it is still included in commit and pushed when I use
git add .
how do I ignore such file ?