git remove references to items added to .gitignore after push code example Example: git ignore still tracking git rm --cached <file> git rm -r --cached <folder>