使用如下命令打patch

$ git apply --reject --whitespace=fix filename.patch

此时git会自动处理好new blank line at EOF的问题,然后重新commit,生成的新的patch就不会有这个问题了。

可以用生成的patch检验一下。

相关文章:

  • 2021-11-07
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-10-27
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2021-07-13
  • 2021-06-27
  • 2021-08-29
  • 2022-02-22
  • 2021-09-16
相关资源
相似解决方案