hook declined to update refs/heads/dev
提交一个项目,push的时候,报错:
warning: Large files detected. remote: error: File TaodangpuAuction/TaodangpuAuction/AuctionClasses/Discover/TXLiteAVSDK/TXLiteAVSDK_UGC.framework/TXLiteAVSDK_UGC is 120.68 MB; this exceeds file size limit of 100.0 MB remote: error: hook declined to update refs/heads/dev To https://gitee.com/doubleyao1116/JianHuo.git! [remote rejected] dev -> dev (hook declined) error: failed to push some refs to 'https://gitee.com/doubleyao1116/JianHuo.git' bogon:天天鉴定dev mac$
原因是有一个文件超过了git服务器对文件大小的限制。
删掉本地文件,再推,还是报错。加忽略文件,再推也是报错。回滚,再推,还是同样的错误。
最后发现是这个大文件已经保存到了log中,因此无论怎么删改,这个文件没有从log中剔除就总会报出相同的错误。所以要在日志中把这个文件删除即可。
命令如下:
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch xxx.rar" -- --all
上面的xxx.rar就是上面上传的大文件
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch TaodangpuAuction/TaodangpuAuction/AuctionClasses/Discover/TXLiteAVSDK/TXLiteAVSDK_UGC.framework/TXLiteAVSDK_UGC" -- --all
上面的过程会很长,不要担心,看见扫描的文件一个一个的变少,那就是离成功更近了。
最后再git push就好了
转载于:https://www.cnblogs.com/jingxin1992/p/11024095.html
hook declined to update refs/heads/dev相关推荐
- 阿里云代码超限2040M remote: error: hook declined to update refs/heads
1 修改配置文件法 remote: error: hook declined to update refs/heads https://www.cnblogs.com/lanrumeng/p/1231 ...
- git错误:exceeds file size limit of 100.0 MB remote: error: hook declined to update refs/heads/master
今天在git上提交了一个大于100M的文件,结果发现报错如下: remote: warning: Large files detected. remote: error: File a/b/c is ...
- 【Git】Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法
Git commit至Gitee报错'remote: error: hook declined to update refs/heads/master'的解决方法 进入到Gitee的邮箱管理中,取消勾 ...
- Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法
进入到Gitee的邮箱管理中,取消勾选禁止命令行推送暴露个人邮箱
- error: dst ref refs/heads/dev receives from more than one src.
使用git push origin a:a 提示一下错误: error: dst ref refs/heads/dev receives from more than one src. error: ...
- remote: error: cannot lock ref ‘refs/heads/dev/mz/dev‘: ‘refs/heads/dev‘ exists; cannot create ‘refs
remote: error: cannot lock ref 'refs/heads/dev/mz/dev': 'refs/heads/dev' exists; cannot create 'refs ...
- git push时出现错误refusing to update checked out branch: refs/heads/master
错误描述 使用tortoisegit push的时候如下错误 Writing objects: 100% (3/3), 258 bytes | 0 bytes/s, done. Total 3 (de ...
- it : Tmaster (hook declined) error: failed to push some refs to https://xxx/biluo/xxx.git
To https:///biluo/xxx.git! [remote rejected] master -> master (hook declined) error: failed to pu ...
- 【git私服推送文件出现的问题】refusing to update checked out branch: refs/heads/master
"remote:error:refusing to update checked out branch:refs/heads/master"的解决办法 转载:http://www. ...
- git push报错:remote: error: refusing to update checked out branch: refs/heads/master
远程仓库通过git init初始化了一个项目,没有clone到本地,本地新建了一个项目,关联本地项目和远程仓库(参见IDEA新建本地项目关联远程git仓库 )后git push报错: wulf@wul ...
最新文章
- 最新NLP架构的直观解释:多任务学习– ERNIE 2.0(附链接)| CSDN博文精选
- BL1551模拟开关,封装SC70-6
- 设计模式的征途—17.模板方法(Template Method)模式
- Apache ZooKeeper - 选举Leader源码流程深度解析
- JAVA项目实训struts2_Java Web项目搭建过程记录(struts2)
- java 本地发送邮件_java在本地发送邮件可以,在服务器发送报错
- html5纪念日期代码,HTML5适合的情人节礼物有纪念日期功能
- 【Pytorch神经网络基础理论篇】 08 Softmax 回归 + 损失函数 + 图片分类数据集
- jQuery中$.get()、$.post()和$.ajax()
- 【Spring学习笔记-0】Spring开发所需要的核心jar包
- mysql数据库优化 分析工具 性能瓶颈
- TinyMC编辑器简介
- PDF转换成WORD方法与转换器大全
- linux文件解压缩加解密
- 如何在 Windows 中删除运行历史记录
- APK文件如何查看源代码
- aws ebs 分析_使用AWS Comprehend进行情感分析
- OSS简单上传下载整理
- php 编码转换 乱码解决
- 深入操作系统底层分析nginx网络请求及响应过程