gitignore is not working

C++
git rm -rf --cached .
git add .

Source

Also in C++: