100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > linux 查看换行符是LF window/linux 回车换行符 CRLF和LF

linux 查看换行符是LF window/linux 回车换行符 CRLF和LF

时间:2022-03-14 04:13:03

相关推荐

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:/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,

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。