git ignore still tracking

Shell
git rm --cached <file>

git rm -r --cached <folder>
Source

Also in Shell: