Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git报告大文件错误,尽管使用了Git LFS_Git_Github_Version Control_Git Lfs - Fatal编程技术网

Git报告大文件错误,尽管使用了Git LFS

Git报告大文件错误,尽管使用了Git LFS,git,github,version-control,git-lfs,Git,Github,Version Control,Git Lfs,这是我试图作为存储库添加到GitHub的文件夹。如您所见,Train.csv和TrainAndValid.csv超过了GitHub的100MB限制。为了解决这个问题,我决定使用Git LFS 在Git Bash中,我键入了以下命令: git-lfs安装 git lfs曲目“*.csv” git add.gittributes git添加。 git提交-m“初始提交” git推送原始主机 但我仍然会犯这样的错误: $ git push origin master Uploading LFS ob

这是我试图作为存储库添加到GitHub的文件夹。如您所见,Train.csv和TrainAndValid.csv超过了GitHub的100MB限制。为了解决这个问题,我决定使用Git LFS

在Git Bash中,我键入了以下命令:

git-lfs安装

git lfs曲目“*.csv”

git add.gittributes

git添加。

git提交-m“初始提交”

git推送原始主机

但我仍然会犯这样的错误:

$ git push origin master
Uploading LFS objects: 100% (9/9), 295 MB | 6.6 MB/s, done
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 4 threads
Compressing objects: 100% (29/29), done.
Writing objects: 100% (35/35), 21.92 MiB | 867.00 KiB/s, done.
Total 35 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), done.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: a4d4a1226ddf41ba822466d7d44d9a85
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File Train/Train.csv is 110.63 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File TrainAndValid.csv is 113.85 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/oo92/blue-book-bulldozers-kaggle.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/oo92/blue-book-bulldozers-kaggle.git'

你确定你现在只有一个提交到master上吗?也许你有一个大文件的第一次提交,只有第二次提交将它们转换为lfs?可能就是这样。如何清除所有提交?因为您刚刚启动了一个新的存储库,我建议:
rm-rf.git
,然后
git init
,然后重新开始…我决定将数据集一分为二,但我会记住您以后说的话。分割数据集更有意义,因为我使用原始链接通过Python访问数据。您确定现在只有一个主数据集提交吗?也许你有一个大文件的第一次提交,只有第二次提交将它们转换为lfs?可能就是这样。如何清除所有提交?因为您刚刚启动了一个新的存储库,我建议:
rm-rf.git
,然后
git init
,然后重新开始…我决定将数据集一分为二,但我会记住您以后说的话。分割数据集更有意义,因为我使用原始链接通过Python访问数据。