Home > OS >  GIT of 0 d0a CRLF drove me mad, for the ultimate answer
GIT of 0 d0a CRLF drove me mad, for the ultimate answer

Time:09-27

Win + sourceinsight + iar environment

PULL down from a company on the GIT project, want to commit to find all the files are modified into red, with text comparison, you couldn't see the difference between, but with a HEX is found on the GIT a newline is 0, a local line breaks are 0 d0a, full red, may be because of this reason file
According to the online guide, with the config core. Autocrlf true command, found that is still red,

Consult:
Why autocrlf=TRUE, only have differences in 0 d0a and 0 a file or show modified,

If only all PUSH 0 d0a again, and then change the autocrlf parameter to FALSE? I know the author himself is also developed with IAR, don't know how he switch is not a problem in the GIT,

For this kind of situation, how to avoid the binary file is GIT changes,
  • Related