我正在尝试在GitHub上安装谷歌地图和一些不同的框架 我目前正在使用mac桌面,我不明白我做错了什么。
Github Mac文件错误:
File Pods/CardIO/CardIO/libCardIO.a is 96.28 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/CardIO/CardIO/libopencv_core.a is 83.71 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/CardIO/CardIO/libopencv_imgproc.a is 96.08 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
File Pods/PayPal-iOS-SDK/PayPalMobile/libPayPalMobile.a is 52.72 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
Trace: c683784b6d6c9afc2ef456aabef1b3bf
See http://git.io/iEPt8g for more information.
File Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps is 123.05 MB; this exceeds GitHub's file size limit of 100.00 MB
我当前的.gitattributes
档案:
*.jpg filter=lfs diff=lfs merge=lfs -text
*.framework filter=lfs diff=lfs merge=lfs -text
答案 0 :(得分:1)
答案 1 :(得分:0)
请注意,自Git LFS 2.2.0 (June 2017)以来,导入大文件的首选方法是使用git lfs migrate import --include "*.a"
。
如果您尝试将大文件推送到没有LFS的GitHub,您可能会看到以下错误:
$ git push origin master
# ...
remote: error: gh001: large files detected. you may want to try git large file storage - https://git-lfs.github.com.
remote: error: see http://git.io/iept8g for more information.
remote: error: file a.psd is 1.2 gb; this exceeds github's file size limit of 100.00 mb
to github.com:ttaylorr/demo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:ttaylorr/demo.git'
您可以使用
git lfs migrate info
命令查看导致推送失败的文件:
$ git lfs migrate info
*.psd 1.2 GB 27/27 files(s) 100%
使用上述信息,您可以确定从历史记录中提取哪些文件并存储在LFS中:
$ git lfs migrate import --include="*.psd"
migrate: Sorting commits: ..., done
migrate: Rewriting commits: 100% (810/810), done
master f18bb746d44e8ea5065fc779bb1acdf3cdae7ed8 -> 35b0fe0a7bf3ae6952ec9584895a7fb6ebcd498b
migrate: Updating refs: ..., done
$ git push origin
Git LFS: (1 of 1 files) 1.2 GB / 1.2 GB
# ...
To github.com:ttaylorr/demo.git
* [new branch] master -> master