linux 查看换行符是LF,window/linux 回车换行符 CRLF和LF
目录:
什么是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: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 return on your keyboard you're actuallyinserting an invisible character called a line ending. Historically,
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
