【发布时间】:2016-01-24 16:02:20
【问题描述】:
我有一些大于 github 文件大小限制 100.00 MB 的 csv 文件。我一直在尝试使用 Git 大文件存储扩展。
来自 LFS - "Large file versioning- Version large files—even those as large as a couple GB in size—with Git."
我在关注的文件夹上应用了以下内容:
git lfs track "*.csv"
但是,当我按下时:
remote: error: File Time-Delay-ftn/Raw-count-data-minor-roads1.csv is 445.93 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File Time-Delay-ftn/Raw-count-data-major-roads.csv is 295.42 MB; this exceeds GitHub's file size limit of 100.00 MB
当我查看相关文件夹时:
-rw-r----- 1 user staff 42B 23 Oct 12:34 .gitattributes
-rw-r--r-- 1 user staff 1.3K 19 Oct 14:32 DfT_raw_major_manipulation.py
-rw-r--r-- 1 user staff 1.2K 16 Oct 15:08 DfT_raw_minor_manipulation.py
drwxr-xr-x 21 user staff 714B 22 Oct 11:35 Driving/
-rwxr-xr-x@ 1 user staff 295M 19 Oct 14:47 Raw-count-data-major-roads1.csv*
-rwxr-xr-x@ 1 user staff 446M 16 Oct 14:52 Raw-count-data-minor-roads1.csv*
当我 vim .gitattributes 文件时,您可以看到 lfs 设置:
*.csv filter=lfs diff=lfs merge=lfs -text
我做错了什么?
更新
当我查询时
git lfs ls-files
我没有得到任何回报。这表明尽管 .csv 过滤器已成功应用于 .gitattributes 文件,但 lfs 并未拾取 csv 文件
【问题讨论】:
-
“您不能推送大于 100 MB 的文件。” – GitHub.com on Working with large files
-
你能不能不压缩它们或其他东西来减小尺寸?
-
@Gumbo 该文档还说“考虑引入 Git 大文件存储 (Git LFS)”。这似乎是被问到的。在该链接之后,文档说“这是将大于 100 MB 的文件推送到 GitHub 的理想解决方案”
-
@natb1 - 是的,如果你阅读了文档 - 这正是它所说的。
-
@Henry。谢谢 - 我试过了。在某些情况下仍然太大
标签: git github large-files git-lfs