由于不存在大文件,导致git推送错误



当尝试推送到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' 

因为那个文件已经不存在了。我不知道该怎么办。任何帮助都将不胜感激。

GitHub为我提供了这个循序渐进的文档,它对我很有用:https://help.github.com/articles/remove-sensitive-data/

基本上,需要对过去的提交进行更彻底的清理。

最新更新