Git Usage Issues Summary

Source: Internet
Author: User

The Execute git add command is present: Warning:lf'll be replaced by the CRLF in ...

Reason:

Carriage return (CR, ASCII, \ r) and newline (LF, ASCII, \ n) These two ASCII characters are not output to the screen, they are used in Windows to identify the end of a line, and there is only a newline character in the Linux/unix system. That is, the line break character in Windows is CRLF, and the newline character is LF on Linux. There is a parameter Autocrlf in git with three values of true, false, and input. Set to True,git will automatically convert the CRLF to LF when it is submitted and convert LF to CRLF at checkout. is set to False, no conversion is made. Set to input, the CRLF is converted to LF on commit, not converted when checked out. The default value of Autocrlf is true, so there is this warning message when committing under Windows.

Workaround:

If you are using only in Windows, you can set Autocrlf to False.

False

If on more than one platform, it can be set to true in Windows, set to input in Mac/linux.

Git Usage Issues Summary

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.