2021. 5. 20. 02:34ㆍGit
인텔리제이 terminal 환경에서 git add . 명령어를 실행하였더니 아래와 같은 오류가 발생하였다.
kimmj@LAPTOP-7RAGST0V MINGW64 ~/OneDrive/문서/GitHub/RecipeServer (main)
$ git add .
warning: LF will be replaced by CRLF in build/tmp/compileJava/source-classes-mapping.txt.
The file will have its original line endings in your working directory
해결 방법
git config --global core.autocrlf true
위처럼 하면 해결이 되긴 하는데 레퍼런스 찾아볼때 true 자리에 false가 있는 자료도 많았다.
왜 그런지 이유는 자세히 살펴보지 않았지만 그렇다는 의견도 남겨본다.
true인 경우)
https://blog.shovelman.dev/923
[삽잡이::GIT] LF will be replaced by CRLF
GIT 초짜라면, 누구나 한번쯤 경험할 수 있는... $ git add README.txt warning: LF will be replaced by CRLF in README.txt. The file will have its original line endings in your working directory. 저 'LF'..
blog.shovelman.dev
https://wotres.tistory.com/entry/git-warning-LF-will-be-replaced-by-CRLF-in-READMEmd
git error 해결법 : LF will be replaced by CRLF in README.md.
깃 처음 사용시 아래와 같은 에러가 뜰때가 있다. warning: LF will be replaced by CRLF in README.md 위는 유닉스 시스템과 윈도우 사이에 new line 즉, 줄바꿈 문자열에 차이가 있어 나오는 경고문이다. 유닉스
wotres.tistory.com
false인 경우)
https://stackoverflow.com/questions/24763948/git-warning-lf-will-be-replaced-by-crlf
Git Warning: LF will be replaced by CRLF
I am using Git gui. I see this error for several files in a folder. I have two choice buttons - Unlock index and Continue. I don't understand what the buttons do. I saw other SO posts which tell me...
stackoverflow.com
https://bnzn2426.tistory.com/33
Git 에러 warning: LF will be replaced by CRLF 해결방법
문서의 끝을 처리하는데 있어서 OS마다 약간의 차이가 있기 때문에 발생 core.autocrlf 기능 꺼주기 $ git config --global core.autocrlf false 참고 : https://blog.jaeyoon.io/2018/01/git-crlf.html
bnzn2426.tistory.com
'Git' 카테고리의 다른 글
git commit 취소 (0) | 2021.03.30 |
---|---|
git log 정지, 탈출 방법 (0) | 2021.03.30 |
Pull is not possible because you have unmerged files (0) | 2021.03.23 |
Please commit your changes or stash them before you merge (0) | 2021.03.17 |
깃허브 커밋기록 안될때 (0) | 2021.03.08 |