LF will be replaced by CRLF 경고 뜰때
현상
windows 와 mac 은 줄바꿈을 처리하는 방식이 틀리다
- windows : CR(Carriage Return)와 LF(Line Feed) 으로 한줄의 끝을 인식
- mac/linux : LF(Line Feed) 으로 한줄의 끝을 인식
mac 에서는 CRLF will be replaced by LF 경고가 뜨고
windows 에서는 LF will be replaced by CRLF 경고가 뜰 것이다
해결방법
git 의 config 설정 중에 core.autocrlf 를 사용한다
windows 사용자는 autocrlf 를 ture 로 설정하고
| 1 | ## windows | 
mac/linux 사용자는 autocrlf 를 input 으로 설정한다
| 1 | ## max/linux | 
설정확인
| 1 | git config --global --list | 
추가
그래도 경고메시지가 뜨는 경우는 그냥 꺼버리자
| 1 | git config --global core.safecrlf false | 
Reference
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreautocrlf
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresafecrlf