【问题标题】:Github remote error problem when pushing changes [duplicate]推送更改时的Github远程错误问题[重复]
【发布时间】:2019-02-20 04:41:48
【问题描述】:

我正在尝试将更改推送到我的 github 存储库,但出现错误:

remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: xxxx
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/data1.csv is 318.00 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File data/data2.csv is 269.45 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/fbagirov/myrepo

! [remote denied] master -> master (pre-receive hook denied)

无论我做什么,我都无法推动它: - 我有一个 .gitignore 这两个超过 100MB 的文件;当它不起作用时,我将整个数据文件夹包含在 .gitignore 中:

data/data1.csv
data/data2.csv
data/
  • 我尝试从缓存中清除文件:

    git rm -- data1.csv

  • 我重新启动了笔记本电脑,以防万一。

我有什么遗漏吗?它仍然显示这些文件的原因可能是什么?

【问题讨论】:

    标签: git github repository


    【解决方案1】:
    1. 如果您在“git add”之后将文件添加到 .gitignore,那么您的文件将不会自动从 git 中删除。
    2. 从 git 中手动删除大文件后你有没有提交过?

    【讨论】:

    • 是的,我重新添加了所有内容并提交了。
    猜你喜欢
    • 2021-12-29
    • 2019-01-01
    • 1970-01-01
    • 2020-04-21
    • 1970-01-01
    • 2016-11-04
    • 2013-05-06
    • 2012-11-06
    • 2018-03-28
    相关资源
    最近更新 更多