目录:
什么是CRLF和LF
为什么要探究CRLF和LF
三种方式处理的不同
更多
参考文献
1、什么是CRLF和LF
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:/articles/dealing-with-line-endings
If you e using Git to collaborate with others on GitHub, ensure that Git isproperly configured to handle line endings.
Every time you press return on your keyboard you e actuallyinserting an invisible character called aline ending. Historically,