Warming: lf will be replaced by CRLF in xxxx

Source: Internet
Author: User
Tags using git

Cause analysis:

CRLF -- carriage-return line-feed carriage return line feed

Press enter (Cr, ASCII 13, \ r) to wrap (LF, ASCII 10, \ n ).

The two accios do not have any output on the screen, but are widely used in Windows to mark the end of a row. In Linux/Unix systems, only line breaks are supported.

In other words, in windows, the line break is CRLF, while in Linux, the line break is: lf

After a rails project is generated using git, the line break in the file is lf. When git Add. is executed, the system prompts that lf will be converted to CRLF.

Git warns about inconsistent line breaks
Solution:
Git config -- global core. autocrlf false

 

Warming: lf will be replaced by CRLF in xxxx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.