-
[git] warning: LF will be replaced by CRLF공부/etc 2021. 11. 6. 02:31
내가 git add를 한 환경은 Windows 10인데 위와 같은 warning이 떠서 검색을 해봤다.
윈도우에서는 줄바꿈 시 CRLF(\r\n) 방식을 쓰는 반면에 유닉스, 리눅스에서는 LF(\n) 방식을 써서 위와 같은 경고가 뜨는 것이라고 한다.
운영체제별로 줄바꿈 규칙이 다르기때문에 git에서 위와 같은 경고를 표시해준 것이다.
아래와 같은 명령어를 입력해서 줄바꿈 문자가 자동 변환되도록 설정해주면 된다.
git config core.autocrlf true
'공부 > etc' 카테고리의 다른 글
[git] 로컬 저장소에서 변경한 내역을 원격 저장소에 반영하기 (0) 2022.01.10 [라즈베리파이] USB 마이크를 이용해서 음성데이터를 녹음하기 (0) 2021.11.08 라즈베리파이로 적외선 신호를 보내보자 - 2 (0) 2021.08.27 라즈베리파이로 적외선 신호를 보내보자 - 1 (0) 2021.08.27 git bash로 git 명령어 실습해보기!! (0) 2021.06.13