본문 바로가기

카테고리 없음

[git] LF will be replaced by CRLF in src/App.js. The file will have its original line endings in your working directory 오류

LF will be replaced by CRLF in src/App.js. The file will have its original line endings in your working directory. 오류 발생시 

 

터미널에 명령어 입력하기

git config --global core.autocrlf true

 

 

 


이는 맥 이나 리눅스를 쓰는 개발자와 윈도우 쓰는 개발자가 Git으로 협업할 때 발생하는 Whitespace 에러

 

 

리눅스나 맥 개발자는 아래 참고

참고) https://dabo-dev.tistory.com/13

https://blog.jaeyoon.io/2018/01/git-crlf.html