使用如下命令打patch
$ git apply --reject --whitespace=fix filename.patch
此時git會自動處理好new blank line at EOF的問題,然後重新commit,生成的新的patch就不會有這個問題了。
可以用生成的patch檢驗一下。
使用如下命令打patch
$ git apply --reject --whitespace=fix filename.patch
此時git會自動處理好new blank line at EOF的問題,然後重新commit,生成的新的patch就不會有這個問題了。
可以用生成的patch檢驗一下。