Git移除已提交代码文件的版本管理 参考链接 https://www.jianshu.com/p/abc039e13209 git rm -r --cached XXXX //移除被追踪的文件或目录 commit代码 更新.gitignore 文件 commit代码