반응형
Notice
Recent Posts
Recent Comments
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

Do Something IT

Github "Warning: line endings have changed from 'LF' to 'CRLF' 본문

카테고리 없음

Github "Warning: line endings have changed from 'LF' to 'CRLF'

아낙시만더 2020. 5. 13. 22:32
반응형
 

"Warning: line endings have changed from 'LF' to 'CRLF'." when files have LF line endings on Windows · Issue #3841 · desktop/d

Description As initially noticed in #1906 (comment) and observed further in #3828, GitHub Desktop presents an erroneous warning about line endings for text files with LF line endings in the working...

github.com

 

@stuartpb Isn't configuration from Github Desktop, you using Windows, Git assumes CRLF, but your "text editor" uses LF only.

Or you change your text editor to CRLF or in your "local repository" change to use only LF using Git commands, example:

In Github Desktop select your repository and in menu go to Repository > Open in Command Prompt:

Execute this commands (In this exact order):

git config core.eol lf git config core.autocrlf input

 와 같이 처리하자

 

git config --global core.safecrlf false

반응형
Comments