github - git push时为什么有些不存在了的文件还会被尝试提交
怪我咯
怪我咯 2017-05-02 09:20:05
0
1
567

我之前有一个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
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
给我你的怀抱

I found the answer, sorry. Executed git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch static/a.bin' HEAD and it worked

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!