git replacing LF with CRLF

前端 未结 20 1666
眼角桃花
眼角桃花 2020-11-21 23:31

Running git on a Windows XP machine, using bash. I exported my project from SVN, and then cloned a bare repository.

I then pasted the export into the bare repositori

20条回答
  •  野性不改
    2020-11-22 00:28

    Removing the below from the ~/.gitattributes file

    * text=auto

    will prevent git from checking line-endings in the first-place.

提交回复
热议问题