我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.18

Limits for viewing content and diffs in a repository

Certain types of resources can be quite large, requiring excessive processing on GitHub Enterprise. Because of this, limits are set to ensure requests complete in a reasonable amount of time.

Most of the limits below affect both GitHub Enterprise and the API.

Text limits

Text files over 1 MB are always displayed as plain text. Code is not syntax highlighted, and prose files are not converted to HTML (such as Markdown, AsciiDoc, etc.).

Text files over 5 MB are only available through their raw URLs, which are served through [hostname]/user/repo/raw; for example, https://[hostname]/user/repo/raw/octocat/Spoon-Knife/master/index.html. Click the Raw button to get the raw URL for a file.

Diff limits

Because diffs can become very large, we impose these limits on diffs for commits, pull requests, and compare views:

Some portions of a limited diff may be displayed, but anything exceeding the limit is not shown.

Commit listings limits

The compare view and pull requests pages display a list of commits between the base and head revisions. These lists are limited to 250 commits. If they exceed that limit, a note indicates that additional commits are present (but they're not shown).

问问别人

找不到要找的内容?

联系我们