Git has a few configuration options to help with these issues. It’s very easy for patches or other collaborated work to introduce subtle whitespace changes because editors silently introduce them, and if your files ever touch a Windows system, their line endings might be replaced. If you want to make an intelligent decision how git should handle this, read the documentationįormatting and whitespace issues are some of the more frustrating and subtle problems that many developers encounter when collaborating, especially cross-platform. If you are a single developer working on a windows machine, and you don't care that git automatically replaces LFs to CRLFs, you can turn this warning off by typing the following in the git command line. when you get code from git that was uploaded from a unix system they will only have an LF. In windows a line is represented with a carriage return (CR) and a line feed (LF) thus (CRLF). In Unix systems the end of a line is represented with a line feed (LF). The file will have its original line endings in your working directory Warning: LF will be replaced by CRLF in ansible.cfg. While using git add command I was receiving below error.
0 Comments
Leave a Reply. |