728x90
참고자료
https://dabo-dev.tistory.com/13
https://velog.io/@wnguswn7/Git-Bash-warning-in-the-working-copy-of-.gitignore-LF-will-be-replaced-by-CRLF-the-next-time-Git-touches-it
원인
윈도우와 맥 개발 환경에서 줄바꿈은 서로 다른 ASCII 코드를 활용하는데 git 이 어떤 것을 따라야 할지 몰라서 발생시키는 오류이다.
해결방법
Git의 core.autocrlf 라는 기능을 켜서 이를 자동 변환 해주도록 하면 된다.
- git config --global core.autocrlf true // 시스템 전체에 적용
⠀- git config core.autocrlf true // 해당 프로젝트에만 적용
이렇게 하게되면 개발자가 git에 코드를 추가했을 때는 CRLF를 LF로 변환해주고,
git의 코드를 개발자가 조회할 때는 LF를 CRLF로 변환해준다고 한다.
'[검색] 공부하기 > Error' 카테고리의 다른 글
| WebServerException: Unable to create tempDir 해결하기 (0) | 2023.10.03 |
|---|---|
| Slack 과 Git hub 모든 브랜치 연동 (0) | 2023.08.22 |
| process finished with exit code 0 (0) | 2023.08.21 |
| execution failed for task ':compilequerydsl'. (0) | 2023.08.19 |
| attempt to recreate a file for type org.zerock.guestbook.entity.qbaseentity (0) | 2023.08.19 |