git 명령어를 주로 사용하던 나는 intellij에서 github를 연동해서 사용해보던 중 CRLF와 LF에 대해서 처음 접하게 되었다.
경고 문구는 아래와 같다.(그림)
You are about to commit CRLF line separators to the Git repositoy.
It is recommended to set the core.autocrlf Git attribute to true to avoid line separator issues.

해결
결론적으로 Window에서 사용하는 줄바꿈 방식과 maxOS, Linux에서 사용하는 줄바꿈 방식이 달름으로 Git에서 core.autocrlf를 true로 사용하면 줄바꿈을 git에서 자동으로 관리해준다. 그럼으로 Fix and commit을 사용하면 되더라.
명령어로 직접 지정한다면 아래처럼 사용할 수 있다. 관련 git공식문서
git config --global core.eol [crlf|lf]
git config --global core.autocrlf [ture|input|false(Default)]
그럼 CRLF랑 LF는 뭘까, 뭐가 다르지, 고려해야되나?
hello\r\nWorldhello\nWorld