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

Git上传报错:remote: Please remove the file from history and try again._第1张图片

 

这个文件夹用作工作文档的云备份,不上传大文件,之前忘了有一个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

你可能感兴趣的:(调错记录,git)