.gitignore not working

Shell
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
git rm -rf --cached .
git add .
git rm -r --cached debug.log nbproject

Source

Also in Shell: