Git不允许提交,抱怨一个不存在的文件太大

时间:2015-10-20 20:03:50

标签: git github version-control

我尝试将更改提交到GitHub存储库。当我尝试这个时,我收到以下错误消息:

remote: error: GH001: Large files detected. You may want to try Git Large 
File Storage - https://git-lfs.github.com.
remote: error: Trace: 8437e5b9aa45a9a5361b17373e18b518
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/voters.csv is 188.80 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/belltec/pstat.git
 ! [remote rejected] aww -> aww (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/belltec/pstat.git'

文件data / votes.csv已从工作目录和回收站中删除。我试图将它从Git工作树中删除,如this question,我收到以下错误:

C:\Users\awimley\pstat>git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch data/voters.csv' HEAD
Cannot rewrite branches: You have unstaged changes.

所以我尝试使用来自this question的命令清除这些未分级的更改,这看起来好像最初有效。但是现在,当我尝试提交时,Git告诉我没有为提交而进行的更改。但是,如果我尝试添加一些,或者推送到我的repo的远程对手,我会收到原始错误:

Counting objects: 64, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (28/28), done.
Writing objects: 100% (30/30), 11.28 MiB | 1.95 MiB/s, done.
Total 30 (delta 11), reused 0 (delta 0)
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: c2bd5114075f5296f5eb39b75a9ea530
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/voters.csv is 188.80 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/belltec/pstat.git
 ! [remote rejected] aww -> aww (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/belltec/pstat.git'

如果我再次运行filter-branch命令,我会收到以下错误:

fatal: ambiguous argument 'rm': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

任何人都知道我做错了什么?

0 个答案:

没有答案