Git bash에서 git add 를 했을 때
warning: LF will be replaced by CRLF in linux/flutter/generated_plugin_registrant.cc.
The file will have its original line endings in your working directory
위와 같은 에러가 발생해서 해결 방법을 찾아보았다.
check-in, check-out할 때 파일을 어떻게 처리할지 설정하는 변수
core.autocrlf = true
CRLF > LF 변경
core.autocrlf = false
기본 설정
플랫폼(OS) 상관없이 줄바꿈에 대한 문자열 그대로 인식해 저장 (문제발생 가능성 존재)
core.autocrlf = input
LF를 line ending으로 사용한다.
git config --global core.autocrlf true
git config --global core.autocrlf input