我推它寫在斯威夫特的GitHub我的Xcode項目。在這個項目中,我使用了GoogleMaps SDK for IOS和GoogleMaps框架,並與其他幾個框架集成在一起,這使得這個項目變得沉重。特別是有一個文件叫做GoogleMaps超過了100MB,這違反了GitHub的政策,因此我得到了錯誤。推送操作拋出錯誤:GH001:大文件檢測
C:\Users\Shyam Bhimani\Desktop\FindMyBuddy>git push
Git LFS: (0 of 0 files, 1 skipped) 0 B/0 B, 34 B skippedCounting objects: 691, done.
Delta compression using up to 4 threads. Compressing objects: 100% (597/597), done.
Writing objects: 100% (691/691), 60.52 MiB | 384.00 KiB/s, done.
Total 691 (delta 161),reused 0 (delta 0)
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com . remote: error: Trace: a2d7f29c8861bcb6bd13498cfcd44ac3
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps is 123.08 MB; this exceeds GitHub's file size limit of 100.00 MB To https://github.com/shyambhimani/FindMyBuddy.git ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ' https://github.com/shyambhimani/FindMyBuddy.git '
到目前爲止,我已經嘗試
Git lfs track 'Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps'
git lfs track '*.*'
git lfs track '*.File'
但是沒有運氣,它仍然每次我推的時間給了我同樣的錯誤。
我不知道該文件的extention所以我只是在一樁案件*.*
,如果它的工作原理,但事實並非如此。
我將不勝感激,如果有人可以幫助我解決這個問題。 TIA
你在爲Git LFS付款嗎? –
不,我不付錢。它只是付費服務嗎?有什麼方法可以上傳超過100MB的項目嗎? @CharlieFish – JBS
剛編輯我的答案。忘了提及一個事實,即由於您使用的是CocoaPods和Google Maps,因此忽略它並在需要時重新下載會非常容易。 –