在尝试推送git时,我一直得到相同的结果:
Counting objects: 78, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (67/67), done.
Writing objects: 100% (71/71), 36.29 MiB | 637.00 KiB/s, done.
Total 71 (delta 39), reused 0 (delta 0)
remote: error: GH001: Large files detected.
remote: error: Trace: 7e446266168df8617c74b6a319ec4538
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File lecture_2_github_io_numpy_pandas/data/cup98LRN.txt is 111.74 MB; this exceeds GitHub's file size limit of 100 MB
To git@github.com:mas-dse/gbrock.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:mas-dse/gbrock.git'
问题是,该txt文件不再存在。我对ipython笔记本进行了更改,删除了该文本文件。保存了笔记本。添加了对git的更改。承诺改变。然后尝试推送git,但它不想工作。
我无法使用:
git rm --cached 'file'
因为该文件不再存在。我不知道该做什么。任何帮助将不胜感激。
答案 0 :(得分:4)
GitHub为我提供了这个循序渐进的文档,它对我很有用:https://help.github.com/articles/remove-sensitive-data/
基本上,需要对过去的提交进行更彻底的清理。