git picking up changes after adding file to gitignore code example Example: gitignore is not working git rm -rf --cached . git add .