github Diff截断错误 [英] github Diff Truncated error

查看:194
本文介绍了github Diff截断错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在github中进行pull请求并查看更改时,我们得到了Diff Truncated错误,如下所示:



任何人都可以帮助解决这个问题

解决方案

拉取请求可能会触发 GitHub支持中提到的限制之一。


Brian Levin @github



我们对浏览器中显示的差异有一些限制,以保持拉取请求和比较页面的正常工作。目前,我们将它们截断为:


  • 300个文件,
  • 总差异为1MB,
    如果您的差异超出限制,您可以在线查看,您可以随时在本地查看更改并查看差异。它可能对您而言并不方便,但它可以完成工作。


OP gyanu 证实:


可能拉请求有+20,932在分行中更改-825行

一种解决方案是要求撰稿人将他/她的PR分成多个较小的PR。 p>

另一方面,如上所述,将本地所有东西拉出来,并在那里处理差异。


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

Can anyone help to fix this issue

解决方案

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.

这篇关于github Diff截断错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆