git ignore not working on files that have been tracked code example Example: git ignore still tracking git rm --cached <file> git rm -r --cached <folder>