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

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

情景:

windows机器上同事的代码,提交后,我这边(linux)拉下来,什么都没修过,vim打开再保存,就会有git diff如图:

要如何配置才可以忽略这个差异。

仅有的幸福
仅有的幸福

Antworte allen(1)
淡淡烟草味

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

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage