问题
While making pull request in github and reviewing changes we got Diff Truncated error as shown below
Can anyone help to fix this issue
回答1:
It is possible the pull request triggers one of the limits mentioned by GitHub support.
Brian Levin @github:
We have some limits on diffs that we show in the browser in order to keep the pull request and compare pages working. Currently, we cut them off at:
- 300 files,
- a total diff of 1MB,
- and an individual diff of 100KB.
If your diffs exceed the limits and can't be viewed online, you can always pull the changes locally and view the diff there. It may not be as convenient for you, but it'll get the job done.
The OP gyanu confirms:
it may be pull request has +20,932 −825 lines changes in branch
One solution would be to request the contributor to split his/her PR into multiple smaller PR.
The other, as mentioned, is to pull everything locally, and work with the diff there.
来源:https://stackoverflow.com/questions/23486701/github-diff-truncated-error