Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Spring Framework
- JavaScript
- HTTP
- 개발자기록
- pls-00103
- CS
- Java
- oracle
- react
- DTO
- Spring
- 뷰
- vue
- error
- framework
- GIT
- Entity
- API
- bean
- SQL
- 프레임워크
- 깃허브에러
- autowired
- vue3
- REST API
- spring boot
- JSON
- Github
- https
- 어노테이션
Archives
- Today
- Total
o-ohi-code 님의 블로그
LF will be replaced by CRLF the next time Git touches it 해결 본문
Tool/Githup
LF will be replaced by CRLF the next time Git touches it 해결
o-ohi-code 2025. 3. 26. 11:00LF will be replaced by CRLF the next time Git touches it error 해결
프로젝트를 Github 에 올리다 보면 가끔 만나는 오류가 있다. 사진과 같은 오류가 자주 발생하는데.
위 오류는 git add . 를 하다보면 자주 발생한다. 이는 현재 파일의 줄바꿈 형식이 LF 방식이기 때문에 발생 하는 문제로.
현재 파일의 줄바꿈(LF) 형식을 git 이 다음에 이 파일을 만질 때 CRLF 로 변경한다는 의미인다.
생각 보다 간단한 오류 였다는 것을 확인 할 수 있다.
🎯 해결 방법
Windows
git config --global core.autocrlf true
macOS / Linux
git config --global core.autocrlf input
--global core.autocrlf true, --global core.autocrlf input
: 윈도우 사용자가 Git 을 쓸 때 줄바꿈 충돌 안 나게 자동 변환해주는 옵션이다.
👉 윈도우에서 작업할 때 줄바꿈 문제를 자동으로 처리해주는 Git 설정이다.
'Tool > Githup' 카테고리의 다른 글
nothing added to commit but untracked files present (use git add to track) 해결 (0) | 2025.03.26 |
---|---|
error: failed to push some refs to 해결 (0) | 2025.03.26 |
fatal: refusing to merge unrelated histories 해결 (0) | 2025.03.26 |
[Github] 깃허브 프로젝트 올리기 / error 정리 (0) | 2025.03.25 |
[Github] 깃허브 프로젝트 생성 방법 (0) | 2025.03.25 |