how to move files to gitignore 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 .
git config --global core.excludesfile ~/.gitignore_global
git rm -rf --cached .
git add .