赞
踩
完整错误
- remote: Powered by GITEE.COM [GNK-5.0]
- remote: error: File: 03a339da9645238a80724374c5e7238ef30e7d7f 182.49 MB, exceeds 100.00 MB.
- remote: Use command below to see the filename:
- remote: git rev-list --objects --all | grep 03a339da9645238a80724374c5e7238ef30e7d7f
- remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
- To
- ! [remote rejected] master -> master (pre-receive hook declined)
- error: failed to push some refs to 'git@gitee.com:liuande/android_ad.git'
亡羊补牢1
.gitignore
新增一行
*.hprof
如果你本地还没删除 可以先把文件名复制一下 已经删除了可以往下走
他让使用命令去找这个文件
windows电脑是只想那个不了这个命令行的
但是windows可以通过一款软件叫cmder 来执行
本地拿到他的文件名称
文件名拿到了
亡羊补牢2
git rm 删除这个文件名称
亡羊补牢3 使用命令 彻底从git删除
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch java_pid22272.hprof" --prune-empty --tag-name-filter cat -- --all
然后再次提交代码就可以了
git push
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。