修改.gitignore使之生效 2016-06-30 本文已影响502人 eoeoops 清楚tracked缓存 git rm -r --cached . 重新添加文件 git add . 最后需要提交 git commit -m ".gitignore is now working" 参考: http://stackoverflow.com/a/26137730/4349466