我意外地试图将一个大文件推送到git,我收到以下错误消息:
=Counting objects: 1565, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1559/1559), done.
Writing objects: 100% (1565/1565), 142.13 MiB | 3.95 MiB/s, done.
Total 1565 (delta 1212), reused 2 (delta 0)
remote: Resolving deltas: 100% (1212/1212), completed with 11 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: e3e1d72efbc7d183eda3ef58d3ef93ad
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File pycotools/Examples/Fit1Dir/smad7_not_reproduced_alternative/file.csv is 1607.96 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/CiaranWelsh/PyCoTools.git
! [remote rejected] CopasiVersion19 -> CopasiVersion19 (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/CiaranWelsh/PyCoTools.git'
我已经从我的两个分支机构中删除了这个文件,但我仍然遇到同样的错误,因此无法push
我的任何代码。有没有人对这里做什么有任何想法?
更新
在评论中suggestion之后
$ git rm --cached /Examples/Fit1Dir/smad7_not_reproduced_alternative/file.csv
产生:
fatal: pathspec 'pycotools/Examples/Fit1Dir/smad7_not_reproduced_alternative/file.csv' did not match any files