如何修复“致命的:无法处理这么大的文件”在混帐? [英] How to fix "fatal: Cannot handle files this big" in git?

查看:279
本文介绍了如何修复“致命的:无法处理这么大的文件”在混帐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图提交时,我得到这个错误:

When trying to commit, I get this error:

fatal: Cannot handle files this big

并没有别的东西可以工作,我试过 git reset 和甚至是 git status 都会失败,并且出现相同的错误。

and nothing else seems to work, I've tried git reset and even git status fails with the same error.

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

I don't want to be able to commit large files. Rather, I would like to fix the current state of my working directory and undo adding whichever file caused this.

推荐答案

删除问题来自操作系统的大文件修复了这个问题。

Deleting the problematic large file from the OS fixed the issue.

这篇关于如何修复“致命的:无法处理这么大的文件”在混帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆