我完全无法推到我的GitHub master分公司。它抱怨一个100+ MB文件甚至不是前端的一部分,这个文件是.Net后端的一部分。前端是角13,这是独立的项目。
我在这里能做什么?我已经用尽了所有的选择。
它在抱怨一个角webpack高速缓存文件("4.pack")。我已经将这个添加到.gitignore中,并在Git方面做了我能做的事情,没有运气。
remote: error: File .angular/cache/angular-webpack/9a0d55421134d22ded528bf53077d11bd7793d98/4.pack is 126.57 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. 发布于 2022-01-12 08:56:24
除了忽略.angular/cache之外,您还可以考虑使用git filter-repo而不是或BFG。
那样的话,你会:
git filter-repo (基于python)git filter-repo --strip-blobs-bigger-than 2M。(基于内容的过滤).angular/cachegit push --force:确保通知存储库上的任何协作者)https://stackoverflow.com/questions/70678353
复制相似问题