vim - git diff say "no newline at end of file"
仅有的幸福
仅有的幸福 2017-05-02 09:25:32
0
1
884

vim save a file without any modify, but git diff say "no newline at end of file"

Scenario:

After submitting the code of my colleague on the windows machine, I pulled it down here (linux) and nothing was modified. When I opened it in vim and saved it, there will be a git diff as shown below:

How to configure to ignore this difference.

仅有的幸福
仅有的幸福

reply all(1)
淡淡烟草味

http://stackoverflow.com/questions/5813311/no-newline-at-end-of-file

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template