github 只是告诉我,而不是提交差异——关于我的一个提交——
Sorry, this diff is taking too long to generate.
It may be too large to display on GitHub.
如果我将 .patch
附加到 URL 的末尾,我会收到以下消息:
error: too big or took too long to generate
我承认差异大小是 360 万行(74MB)——在命令行使用 git diff
验证。
但如果我理解得很好https://github.blog/2016-12-06-how-we-made-diff-pages-3x-faster告诉我们(接近帖子的结尾):
Overall, the effective limits we enforce for the entire diff became:
Up to 3,000 files.
Up to 60,000,000 lines (not loaded automatically).
Up to 3GB of diff text (also not loaded automatically).
这是完全可以接受的,远远超出我的需要。
知道如何在 github 上获取此提交差异吗?
最佳答案
嗯,那个blog post是 2016 年 12 月 6 日,因此可能已过时。
截至目前,根据 GitHub Help差异限制是
Because diffs can become very large, we impose these limits on diffs for commits, pull requests, and compare views:
- No single file's diff may exceed 20,000 lines that you can load or 1 MB of raw diff data. Four hundred lines and 20 KB are automatically loaded for a single file.
- The maximum number of files in a single diff is limited to 3,000.
- The maximum number of renderable files (such as images, PDFs, and GeoJSON files) in a single diff is limited to 25.
Some portions of a limited diff may be displayed, but anything exceeding the limit is not shown.
因此,如果您的差异编号未低于指定限制,我认为您无法在 GitHub.com 上查看
关于github 不显示提交差异,太大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61300981/