suchen

Heim  >  Fragen und Antworten  >  Hauptteil

vim - git diff say "no newline at end of file"

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

情景:

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

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

仅有的幸福仅有的幸福2838 Tage vor906

Antworte allen(1)Ich werde antworten

  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:27:32

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

    Antwort
    0
  • StornierenAntwort