关于gitee一次性上传超过100M的建议

当gitee已经提交修改代码一次时候,显示仓库拒绝本地的提交的原因有以下:

1 原因

基本含有非代码格式的其他文件,例如视频(真的,我是经过这次失败之后,才知道视频的内存占用量是真的大)

推送记录:
在这里插入图片描述
好的,意料之中,你果然不我果然被拒绝了(拒绝了好多次)
在这里插入图片描述

错误信息,以及提示的解决的方法:

```html
remote: Powered by GITEE.COM [GNK-6.1]
remote: error: File: 23c0945f808a553c17c3d98b5bb7cb9f9d295556 202.31 MB, exceeds 100.00 MB.        
remote: Use command below to see the filename:        
remote: git rev-list --objects --all | grep 23c0945f808a553c17c3d98b5bb7cb9f9d295556
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)        
error: failed to push some refs to 'https://gitee.com/2576619395/rehab-robot.git'
To https://
gitee.com/2576619395/rehab-robot.git
!	refs/heads/test:refs/heads/test	[remote rejected] (pre-receive hook declined)
Done

3 我之前的经历(如果你坚持继续按照它的指示的话,我也可以提供思路)

关键提示:
remote: git rev-list --objects --all | grep 23c0945f808a553c17c3d98b5bb7cb9f9d295556
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)

意思就是:

1 首先通过git bash(需要下载git,并且在相应的目录下面使用git bash) s输入指令:

例如我的:
git rev-list --objects --all | grep 23c0945f808a553c17c3d98b5bb7cb9f9d295556

到对应文件夹下面运行指令
在这里插入图片描述
此时可以看到,我们找到了这个大文件。
此处实现了这一句提示:
remote: git rev-list --objects --all | grep 23c0945f808a553c17c3d98b5bb7cb9f9d295556

2 下一句的提示就是:

remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
在这里插入图片描述
点击这里的提示的网址:
(https://gitee.com/help/articles/4232)
会看到对应的操作,怎么从历史中删除文件,然后重新提交。

但是不幸的是,我这样操作了不行,但是这里还是提供思路。

就这样,耗了一上午以及半下午,最终采取第二个不得不的方法。

2 重新clone项目,把自己的代码移植到clone的里面(如果不多的话,其实还好)

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值