gitignore file does not take effect

git rm -r --cached .
git add . git commit -m 'update .gitignore'

Guess you like

Origin www.cnblogs.com/php-linux/p/11719421.html