does git remove files immediately after adding them to .gitignore code example Example: git ignore still tracking git rm --cached <file> git rm -r --cached <folder>