Problem gitignore 不起作用 Solution git rm -r --cached . git add . [seems command below can be omitted, just use above two commands] git commit -m 'update .gitignore' https://www.cnblogs.com/sloong/p/5523244.html