错误提示:
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'
可以按照提示删除这个文件 03a339da9645238a80724374c5e7238ef30e7d7f
windows电脑是只想那个不了这个命令行的
但是windows可以通过一款软件叫cmder
cmder 可以新建一个窗口 进入linux 窗口模式 (bash:bash) 来执行 这样可以拿到文件名称。
使用命令 彻底从git删除
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch java_pid22272.hprof" --prune-empty --tag-name-filter cat -- --all
再次提交代码
git push