github 不显示提交差异,太大

标签 github

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 post2016 年 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/

相关文章:

ruby - 我可以通过 GH API 获取两次提交之间一个文件的差异数据吗?

github - 我如何备份 Github bugtracker?

github - 使用 Cloud Build Trigger 对 Github Pull Request 中提到的文件运行 Pytest

git - 为什么 Github 仓库没有 "clone"选项?

github - 有没有办法在 Jenkins 构建完成时得到通知?

github - 你能看到谁在看 GitHub 上的 repo 吗?

css - Git add -patch...但忽略空格更改

git - 有没有办法让github桌面自动 pull 和推送更改

ios - 什么是 +Subproject 提交?

git - 设置 GitHub 镜像存储库,无需重复搜索结果