How to solve the "Wall of pink" in Github for Windows?

I use Github for Windows in Windows 7, sometimes it shows the wall of a pink file, even if the file has not been modified at all (as shown in the following figure). I found an article about this, but I did not find a good solution. Is there a way to make Github for windows work correctly and not change the CRLF LF characters in my file? I like CRLF ....

wall of pink

+4
source share
2 answers

I like CRLF ....

Everyone does it on Windows; -)

, Git LF.

: CRLF LF Git. Git , .

, ,

[...] , GitHub Windows, text = auto ( .gitattributes , ).

# Auto detect text files and perform LF normalization 
* text=auto

text = auto?

, , Git , (LF) . . , Git ; CRLF, core.autocrlf.

. whys hows Git.

Update

nulltoken, .gitattributes , text = auto, github .

, . Git.

  • , .gitattributes .
  • , , (, git status - nothing to commit, working directory clean)
  • git checkout-index --force *. .gitattributes. , CRLF, git status - workdir .
  • .

. - , , .gitattributes.

+2
  • Notepad ++.
  • Edit/EOL Conversion.
  • UNIX/OSX.
  • .
0

All Articles