git how to only add the files you want and gitignore the ones you dont 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 .