
CRLF是Carriagereturnline Feed的缩写。
LF是Line Feed的缩写。
在Windows系统中,回车换行为CRLF,而在其他系统中为LF,当git add或commit时会提醒不同系统间版本库内容可能出现不兼容的问题,应注意CRLF与LF两个行结束符的转换。
Windows系统上将CRLF转换为LF:
1 |
git config --global core.autocrlf input |
其他系统将LF转换为CRLF:
1 |
git config --global core.autocrlf true |




近期评论