清空git缓存 git rm -r -f --cached . git add . git commit -m 'update .gitignore' git push -u -f origin master