git remote: Please remove the file from history and try again.

错误提示: 

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

 

 

 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值