git rm -r --cached . git add . git commit -m 'update .gitignore' 转载 https://www.jianshu.com/p/a7fca922bbaa