how to ignore files while git add* code example
Example 1: git ignore updates to file
git update-index --skip-worktree path/to/file.txt
Example 2: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
Example 3: git ignore not saving changes
git rm -rf --cached .
git add .