Git update gitignore by git rm -r --cached . git add . git commit -m "update gitignore"git rm -r --cached . git add . git commit -m "update gitignore" Please follow and like us: