https://blog.jaeyoon.io/2018/01/git-crlf.html
https://dabo-dev.tistory.com/13
유낙스 사용자: CRLF will be replaced by LF in… 에러 메시지
윈도우 사용자 : LF will be replaced by CRLF in… 에러 메시지
두가지 경우 모두 이를 자동변환 해주는 Git의 기능인 core.autocrlf를 켜주기만 하면 된다.
cmd에서 입력한다.
윈도우의 경우 :
만약 현재 프로젝트에만 적용하고 싶다면 --global 빼주고 입력.
git config --global core.autocrlf true
리눅스의 경우 :
리눅스나 맥을 사용하고 있는 경우, 조회할 때 LF를 CRLF를 변환하는 것은 원하지 않을 것이다. 따라서 뒤에 input이라는 명령어를 추가해줌으로써 단방향으로만 변환이 이루어지도록 설정한다.
git config --global core.autocrlf true input
기능을 원하지 않을 때(에러 메세지 표시하지 않고 알아서 작업하고 싶을 때)
git config --global core.safecrlf false
나의 경우엔 다 했는데도 같은 오류가 떴다.
그리고 마지막 에러메세지를 확인해보니
Temp/FSTimeGet-d51756f515dfa324fa34fe31d4e3a5f2 파일에 대한 쓰기 권한이 없다는 에러가 있었다.
이 블로그에서 위 파일은 실행 중에만 생기는 임시 파일인 것 같다한다.
.gitignore에서도 Temp디렉토리를 커밋에서 제외시킬 수 있다. (Library처럼 주석 삭제)
실행중에만 생기는 임시 파일이니 켜져 있는 유니티 프로젝트를 끄고 커밋해서 해결했다.
Temp는 안올라가게 해놔야겠다..