does git read .gitignore changes before commit code example
Example 1: how to avoid some files changes to not come in git status
git update-index --assume-unchanged <file>
Example 2: how to avoid some files changes to not come in git status
git rm --cached <file>