what is the best way to deal with a file you don't want to commit but can't put in the git ignore. code example
Example 1: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
Example 2: git ignore not saving changes
git rm -rf --cached .
git add .