@qiangxue I updated .gitattributes

@suralc Not exactly, the difference of these configs are:

If you set extensions then git will force convert all files with set extensions in LF

    * text=auto
    *.txt  text

If you rename the picture 1crlf.png to 1crlf.txt, then git will force convert line endings from CRLF to LF (store the file in the repository with LF).


If you don't set extensions that git will define the file type using its internal structure.

    * text=auto

If you rename the picture 1crlf.png to 1crlf.txt, then git will not convert line endings and store the file in the repository with a CRLF.