git上传大文件错误修改方法
2016-12-26 12:32
260 查看
git上传大文件错误修改方法
错误提示
Counting objects: 15, done. Delta compression using up to 2 threads. Compressing objects: 100% (13/13), done. Writing objects: 100% (13/13), 150.22 KiB | 92 KiB/s, done. Total 13 (delta 6), reused 0 (delta 0) remote: warning: File data/test.xml is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB remote: warning: File data/test.xml is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50 MB remote: error: GH001: Large files detected. remote: error: Trace: e6ade98208c08b634ed28aefea36dfbb remote: error: See http://git.io/iEPt8g for more information. remote: error: File data/test.xml is 128.00 MB; this exceeds GitHub's file size limit of 100 MB To git@github.com:bobbyg603/goddard.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@github.com:xiaolin/test.git'
如果遇到这样的错误(如果大文件不需要上传到git仓库中去的话)可以这样修改,去上传已经在缓存文件中提交的这些大文件。如:
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch data/test.xml'
希望有帮助!
相关文章推荐
- jsp中上传大文件(200M已测试),存到数据库,易发生连接超时的ie找不到网页的错误,其解决方法。略写代码,参考(.net修改代码应该可以,改天修改)
- 应对eWebEditor漏洞上传文件500错误的方法
- 应对eWebEditor漏洞上传文件500错误的方法
- SSH 文件上传错误:encountered 1 errors during the transfer终极解决方法:
- asp.net关于上传文件修改文件名的方法
- '800a0005' 图片上传出现写入文件失败的错误 -- 修改pload_5xsoft.inc
- 郁闷N天了,IDFTP发生10054错误后无法继续上传文件,重新创建IDFTP后发生错误:550 cannot create file。请教解决方法
- FileUpload上传多文件时出现“无法访问已关闭的文件”错误的解决方法
- SSH 文件上传错误:encountered 1 errors during the transfer终极解决方法:
- 修改windows2003下IIS6默认上传文件大小限制(200K)的方法
- Struts2上传文件修改默认错误提示
- 接上一篇,在cs文件中往页面动态添加meta标签时出现“控件包含代码块(即 ),因此无法修改控件集合”错误的解决方法
- struts2-core-2.1.8.1修改文件上传的方法
- Asp.net上传文件限制,在大于5M的时候出现DNS解析错误,解决方法。
- 修改PHP上传文件大小限制的方法
- SSH 文件上传错误:encountered 1 errors during the transfer解决方法
- asp无组件上传文件超过200k就提示错误的解决方法
- Nginx 413错误的排查:修改上传文件大小限制
- SSH 文件上传错误:encountered 1 errors during the transfer解决方法
- spring mvc 上传文件400错误解决方法