git 수정한 파일이 없는데 intelij에 staging에 올라가있는경우

intelij를 사용하다가 상단에 Contents have differences only in line separators 알림이 보이고, staging에 수정하지 않은 파일들이 올라갔을경우 아래 명령어를 터미널에 입력하여 해결합니다.

 

#1. Git core.autocrlf 설정 (권장)
git config --global core.autocrlf true

#2. 현재 스테이징된 찌꺼기 파일들 한 번에 정리하기
git add --renormalize .

'backend > 오류모음' 카테고리의 다른 글

A problem occurred configuring root project  (0) 2022.12.27
Cannot find method 'value'  (0) 2022.11.25