github - git push时为什么有些不存在了的文件还会被尝试提交

 唯美爱人2014 发布于 2022-10-26 21:38

我之前有一个static/a.bin文件,比较大。但是我后来删除了它,cached中也不见了,但是我push时,还是有它。提示如下:

remote: warning: File static/a.bin is 95.37 MB; this is larger than Git@OSC's recommended maximum file size of 50 MB
remote: error: File static/a.bin is 442.09 MB; this exceeds Git@OSC's file size limit of 100 MB
remote: error: hook declined to update refs/heads/master
1 个回答
  • 找到答案了,不好意思。执行了了git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch static/a.bin' HEAD 就行了

    2022-10-27 01:41 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有