我正在尝试
git push origin master
我收到错误
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: File node_modules.zip is 118.78 MB; this exceeds GitHub Enterprise's file size limit of 100.00 MB
文件夹中不再存在该文件。我尝试使用
从缓存中删除它git rm --cached node_modules.zip
正确地得到错误
fatal: pathspec 'node_modules.zip' did not match any files
所以我尝试使用
删除整个缓存git rm -r --cached .
并删除所有缓存。我看到输出中的所有文件。然后我再次尝试使用
推送git push origin master
但仍然得到错误,即使在重新启动电脑后
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: File node_modules.zip is 118.78 MB; this exceeds GitHub Enterprise's file size limit of 100.00 MB
我无意使用 lfs
,因为我不需要该文件。
我应该在这里做什么?