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

我之前有一个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
阅读 5.9k
1 个回答

找到答案了,不好意思。执行了了git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch static/a.bin' HEAD 就行了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题