git push的时候报错,git push remote: error: GH001: Large files detected. 表示提交的文件太大,不能超过100MB
解决办法如下,输入下列的代码,再git push,就OK了:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch path/name'
其中path/name是那个对应的文件的路径和文件的名字,比如我这里输入的是 Assets/model.obj
参考链接:
https://stackoverflow.com/questions/19858590/issues-with-pushing-large-files-through-git/19945538
https://www.thisprogrammingthing.com/2013/fixing-the-this-exceeds-githubs-file-size-limit-of-100-mb-error/