git error Large files detected解决办法
来源:互联网 发布:nginx 403 权限 编辑:程序博客网 时间:2024/05/18 20:46
错误详情
remote: warning: Large files detected. remote: error: this exceeds file size limit of 100.0M
参考官方说明:
https://help.github.com/articles/removing-files-from-a-repository-s-history/
但是这种方式只能清除最近的提交到版本库但未推送到远程仓库的文件
解决办法
这个方法里面提供了两种解决方案,https://help.github.com/articles/removing-sensitive-data-from-a-repository/
第一种方式,使用BFG repo-cleaner,
https://rtyley.github.io/bfg-repo-cleaner/ ,
但是要使用java环境运行,我windows使用的git bash没有设置Java路径所以就没有用这种方式;
第二种方式,使用git-filter-branch
首先,清除异常的文件QMPlayer.VC.db
git filter-branch --indx-filter 'git rm --cached -- ignore-unmatch QMPlayer.VC.db' --tag-name-filter cat -- --all
然后修改.gitignore
,提交
echo "QMPlayer.VC.db" >> .gitignoregit add .gitignoregit commit -m "Add QMPlayer.VC.db to .gitignore"
然后强制推送版本仓库
git push -f origin
阅读全文
0 0
- git error Large files detected解决办法
- git报错:remote: warning: Large files detected.
- 关于git上传文件过大报错的问题 remote: warning: Large files detected.
- github push文件过大,error: GH001: Large files detected. this exceeds GitHub's file size limit of 100 MB
- Python:Error: Inconsistent indentation detected!解决办法
- Python:Error: Inconsistent indentation detected!解决办法
- git pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法
- git 提交后“Error: Your local changes to the following files would be overwritten by merge”解决办法
- git pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法
- git 上传至github出现error:your local changes to the following files would to be overwritten解决办法
- git pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法
- git push remote error解决办法
- Find top 10 large files
- Sending large files over JMS
- Read Large Files in Python
- Heap corruption detected error
- .glibc detected ERROR
- [error]stack smashing detected
- python索引问题
- Context应用
- tomcat 启动项目时出现 ZipException: error in opening zip file
- 为什么那么多人都选择通过培训来学习Java?
- 整合hibernate与JPA
- git error Large files detected解决办法
- Python web 框架 Flask 入门 macOS 下实践记录
- kafka学习(1)
- html定时刷新
- 今天
- 移位
- pagehelper
- mysql navicat 事件开启
- flex布局实现左右都不定宽的自适应布局