Question

While making pull request in github and reviewing changes we got Diff Truncated error as shown below

diff truncated error

Can anyone help to fix this issue

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top