当前位置:   article > 正文

关于gitee一次性上传超过100M的建议_gitee最大100m怎么改

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

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的里面(如果不多的话,其实还好)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/721439
推荐阅读
相关标签
  

闽ICP备14008679号