如何去掉git diff 时的 \ no newline at end of file

来源:互联网 发布:淘宝隐形降权查询工具 编辑:程序博客网 时间:2024/06/07 07:27

加上-w就可以了

例如 git diff -w bf38e3cbfa7ffa8e432b05d51575abc66c307c99 640740e9a92bc69bb09dc30a628c3a10827185ab >~/b.patch

这种警告一般是是使用的编辑器造成的,如gedit