目录:
1、什么是CRLF和LF
CRLF 是carriagereturnline feed的缩写。中文意思是回车换行。
LF是line feed的缩写,中文意思是换行。
2、为什么要探究CRLF和LF
在学习git软件,安装git到configuring the lien ending conversion时,有三个选项。
a. Checkout Windows-style,commit Unix-style line endings.
b.Checkout as-is,commit Unix-style line endings.
c.Checkout as-is,commit as-is line endings.
这里面讲到了做两个操作(Checkout,Commit)的三种处理line endings的操作(Windows-style,Unix-style,As-is)。
为什么会出现这三种处理line endings(行尾结束符)呢?在Git的帮助页面给出了很好的解释。
Reference From:https://help.github.com/articles/dealing-with-line-endings
If you’re using Git to collaborate with others on GitHub, ensure that Git isproperly configured to handle line endings.
Every time you press retur