gpt4 book ai didi

github - push failed 错误信息 github large files

转载 作者:行者123 更新时间:2023-12-01 04:56:10 26 4
gpt4 key购买 nike

我正在尝试在 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

最佳答案

请注意,由于 Git LFS 2.2.0 (June 2017) ,导入大文件的首选方法是使用 git lfs migrate import --include "*.a" .

Git LFS 2.2.0 released

If you've tried to push a large file to GitHub without LFS, you might have seen the following error:


$ 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'

You can use the git lfs migrate info command to see which files are causing the push failure:


$ git lfs migrate info
*.psd 1.2 GB 27/27 files(s) 100%

Using the information above, you can determine which files to pluck out of your history and store in 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

关于github - push failed 错误信息 github large files,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37109636/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com