如何解决Git lfs会跳过跟踪的文件?

时间:2017-05-31 11:30:04

标签: git github

我在使用GIT LFS时遇到了一些麻烦。当我将CocoaPods添加到我的Xcode项目时,我有一些问题要添加git的提交。 GitHub的文件大小限制为100.00 MB的错误。经过一番研究后,我来到了LFS图书馆。安装后我克隆了没有CocoaPods的项目。添加了Pod文件并安装了GVRSDK Pod。

之后我做了以下命令:

git lfs track [files that where been added by CocoaPods]
git lfs track - The tracked files where tracked
git add .
git commit -m "Added Pods to project"
git push

但是在推送提交后我收到了同样的错误。它还说:Git LFS: (0 of 0 files, 8 skipped) 0 B / 0 B, 112.96 MB skipped.

我已将我的git更新为最新版本的2.13.0

我错了什么或者我错过了什么?我遵循了本教程:https://github.com/git-lfs/git-lfs/wiki/Tutorial

完整的错误是:

Git LFS: (0 of 0 files, 7 skipped) 0 B / 0 B, 1.02 KB skipped Counting objects: 760, done. Delta compression using up to 8 threads. Compressing objects: 100% (600/600), done. Writing objects: 100% (760/760), 57.14 MiB | 73.00 KiB/s, done. Total 760 (delta 212), reused 0 (delta 0) remote: Resolving deltas: 100% (212/212), done. remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: Trace: 4e56dff020008a4a06c019a10618d5ab remote: error: See http://git.io/iEPt8g for more information. remote: error: File Pods/GVRSDK/Libraries/libGVRSDK.a is 112.96 MB; this exceeds GitHub's file size limit of 100.00 MB To https://github.com/Caspert/RSRVR ! [remote rejected] dev -> dev (pre-receive hook declined) error: failed to push some refs to 'https://github.com/Caspert/RSRVR'

1 个答案:

答案 0 :(得分:0)

看起来GitHub有一个限制,即使是在LFS文件上,基于你得到的错误:remote:error:File Pods / GVRSDK / Libraries / libGVRSDK.a是112.96 MB

GitHub's documentation

GitHub会在推送大于50 MB的文件时发出警告。您将不被允许推送大于100 MB的文件。