如何在 git 中修复 "fatal: Cannot handle files this big"?

How to fix "fatal: Cannot handle files this big" in git?

尝试提交时,出现此错误:

fatal: Cannot handle files this big

而且似乎没有别的工作,我试过 git reset 甚至 git status 失败并出现同样的错误。

我不想提交大文件。相反,我想修复我的工作目录的当前状态并撤消添加导致此问题的任何文件。

从 OS 中删除有问题的大文件解决了这个问题。