// 清除缓存 -r 表示递归删除(如果有文件夹的话) .表示所有文件 $ git rm -r --cached . git add . git commit -m "update .gitignore" git push origin master