git update gitignore
git rm -r --cached . git add . git commit -m "update gitignore"
git doesn't ignore files in gitignore
git rm --cached [filename]
git reload .gitignore file
Make changes in . gitignore file. Run git rm -r --cached . command. Run git add . command. git commit -m "Commit message" or just git commit or continue working.