그래서이 공동 작업 프로젝트를 시작하려고하는이 새로운 저장소가 있습니다. 이미 .gitignore
및 .gitattributes
(auto-crlf 처리 중) 파일을 푸시했습니다.힘내 : 자체 제작 된 파일의 줄 끝 문제가 있습니다.
내 .gitattributes
파일은 다음과 같습니다
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.mdj binary
내가 GitHub의에 저장소를 생성 SourceTree를 통해 내 PC에 복제. ,
이The following problems have occurred when adding the files:
fatal: LF would be replaced by CRLF in tpCuat/CMakeLists.txt
during executing git "C:\Program Files\Git\cmd\git.exe" -c core.quotedpath=false add --ignore-errors -- tpCuat/CMakeLists.txt
것은이 : 이제, 내가 그 안에 새로운 CLion 프로젝트를 만들려고 해요,하지만 난 하려고 할 때이CMake
및 main.c
파일이 커밋에 추가, 나는 CRLF 오류에 LF를 얻을 수 이 파일들은 Windows (실제로는 CLion)에서 만들어 지므로이 오류가 왜 발생하는지 알 수 없습니다.
'.gitattributes '는 실제로 어떻게 생겼습니까? 'core.autocrlf' 설정이 있습니까? 'core.safecrlf' 설정이 있습니까? –
기본값은 Git의 버전 (및 빌드)에 따라 다릅니다. – Arafangion
@EdwardThomson [여기] (http://imgur.com/a/lGfQR)은 내 .gitattributes입니다. –