推送文件以获取超出文件大小的文件,但在清理文件并减小文件大小后

时间:2019-03-02 01:10:46

标签: git github jupyter-notebook

我有一个带几个jupyter笔记本的github存储库,用于对大文件进行数据清理。我不小心将笔记本推到github上,该笔记本的输出单元很大,极大地增加了文件的大小。在收到有关文件大小的错误后,我清理了jupyter笔记本的输出,将文件大小减小到28kb。现在,当我尝试将该文件推送到github时,出现有关文件大小的以下错误:

    MacBook-Air:$ git push
    Enter passphrase for key '/Users/.ssh/id_rsa': 
    Counting objects: 9, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (9/9), done.
    Writing objects: 100% (9/9), 6.17 MiB | 99.00 KiB/s, done.
    Total 9 (delta 4), reused 0 (delta 0)
    remote: Resolving deltas: 100% (4/4), completed with 1 local object.
    remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
    remote: error: Trace: 7124124eb1e187e4668cbf0f75634827
    remote: error: See http://git.io/iEPt8g for more information.
    remote: error: File Data_cleanup.ipynb is 116.86 MB; this exceeds GitHub's file size limit of 100.00 MB
    To github.com:jeff326/Data_Tools_Brazil_Weather.git
     ! [remote rejected] First_exploration_SR -> First_exploration_SR (pre-receive hook declined)
    error: failed to push some refs to 'git@github.com:****/***Brazil_Weather.git'

解决此后续问题的最佳方法是什么?非常感谢您的帮助。

0 个答案:

没有答案