Git上传报错:remote: Please remove the file from history and try again.

 

这个文件夹用作工作文档的云备份,不上传大文件,之前忘了有一个400M的视频在里面,push报错。视频移除之后还是报这个大文件的错。

报错内容:Administrator@PC-Zym MINGW64 /e/工作/gongzuowendangjihe_sitech (master)
$ git push
Counting objects: 28, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (27/27), done.
Writing objects: 100% (28/28), 458.61 MiB | 1.13 MiB/s, done.
Total 28 (delta 7), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-5.0]
remote: error: File: 3fd2c09a0ba3859753aa7d964e1aabc3f0a1694b 431.50 MB, exceeds 100.00 MB.
remote: Use command below to see the filename:
remote: git rev-list --objects --all | grep 3fd2c09a0ba3859753aa7d964e1aabc3f0a1694b
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)

后续问题:查阅了一些资料,又看了工作区各文件夹的内存占比,发现是 .git文件夹过大,这就涉及到git瘦身。参考

https://www.jianshu.com/p/7231b509c279

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值