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.).
Diff limits
Diffs can become very large, and are kept within reasonable bounds in a few ways. The following limits affect the commit, pull request, and compare view diffs:
- No single file's diff may exceed 100 KB of raw diff data.
- The total size of a diff across all files in a view may not exceed 1 MB.
- The maximum number of files in a single diff is limited to 300.
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 500 commits. If they exceed that limit, a note indicates that additional commits are present (but they're not shown).