git rm -r --cached . git add . git commit -m "remove gitignore cache" git push 转载于:https://www.cnblogs.com/cuthead/p/gitignore.html