fix .gitignore file code example
Example 1: gitignore is not working
git rm -rf --cached .
git add .
Example 2: remove gitignore files
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
// answer from: thSoft