Git Tips Aug 1, 2022 update .gitignore .gitignore can’t ignore files that have already been tracked. Remove local cache first and commit again to update .gitignore. git rm -r --cached . git add . git commit -m 'update .gitignore'