git error Large files detected解决办法
2017-11-03 17:17
471 查看
错误详情
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.dbgit filter-branch --indx-filter 'git rm --cached -- ignore-unmatch QMPlayer.VC.db' --tag-name-filter cat -- --all
然后修改
.gitignore,提交
echo "QMPlayer.VC.db" >> .gitignore git add .gitignore git commit -m "Add QMPlayer.VC.db to .gitignore"
然后强制推送版本仓库
git push -f origin
相关文章推荐
- git pull 时出现 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 pull 时出现 error: Your local changes to the following files would be overwritten by merge的解决办法
- git clone 下载速度0bytes 出现error: RPC failed; curl 18 transfer closed with outstanding read data 解决办法
- Git的错误error: Failed connect to github.com:443;解决办法
- [Git & GitHub] 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'
- VS 2017 Git failed with a fatal error的解决办法
- gitlib 上传时出现error: src refspec master does not match any解决办法
- 解决办法:CMake编译时出现“error in configuration process project files may be invalid”
- git提示error setting certificate verify locations解决办法
- Git提示error setting certificate verify locations解决办法
- jenkins Error performing command: git ls-remote -h 解决办法
- git提示error setting certificate verify locations解决办法
- 解决办法:CMake编译时出现“error in configuration process project files may be invalid”
- git报错:remote: warning: Large files detected.
- Flume启动报错[ERROR - org.apache.flume.sink.hdfs. Hit max consecutive under-replication rotations (30); will not continue rolling files under this path due to under-replication解决办法(图文详解)
- git push时错误提示的解决办法 By default, updating the current branch in a non-bare repository error: is denied,
- git cherry-pick 时遇到 cannot merge binary files问题解决办法
- error: cannot spawn git: No such file or directory问题解决办法
- git push remote error解决办法