dev/software
GitHub 오류 모음
mattew4483
2021. 2. 21. 23:14
728x90
반응형
- Git add 오류
CRLF will be replaced by LF file.txt
→ 줄 바꿈 문자(CR, LF)로 인한 에러
Mac과 Linux는 LF(Line Feed) 문자만,
Window는 CR(Carriage Return)+LF(Line Feed) = CRLF 문자를 둘 다 사용한다.
따라서 Mac, Linux 개발자와 Window 개발자가 협업 시 문제 발생!
Git이 어느 쪽을 선택할지 혼란이 오게 되어 에러가 발생하게 된다.
Window 유저는 git config --global core.autocrlf true 를 통해
자동 변환을 해주는 기능인 core.autocrlf 를 켜주면 해결.
- Git Pull 오류
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
→ 어느 branch의 데이터를 pull 해올지 지정하지 않아 발생하는 에러.
git pull <remote> <branch> 형태로 명시해주면 된다.
fatal: refusing to merge unrelated histories
→ Git에서는 서로 관련 기록이 없는 이질적인 두 프로젝트를 병합할 때 기본적으로 거부!
git pull origin 브런치명 --allow-unrelated-histories 명령어를 통해 이를 허용해주면 된다.
728x90
반응형