git 清除add 后的文件 git reset --mixed git 清除本地缓存 git rm -r --cached . git 过滤本地文件 对本地代码分支相关的缓存、日志文件可以使用 …gitignore文件增加限制