我在使用GIT LFS時遇到了一些麻煩。當我將CocoaPods添加到我的Xcode項目中時,我有一些問題需要向git添加提交。 GitHub的文件大小限制爲100.00 MB的錯誤。經過一些研究後,我來到了LFS圖書館。安裝後,我克隆了沒有CocoaPods的項目。添加了Pod文件並安裝了GVRSDK Pod。如何解決Git lfs會跳過追蹤文件?
之後,我做了下面的命令:
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'
這很奇怪,因爲我已經有一個使用GVRSDK pod的項目,並且提交和推送都沒有任何問題。到目前爲止.. – Caspert
您確定其他項目的文件大於100 MB嗎?也許有一個新版本的SDK? – Robert