Git 에러에러
error: non-fast-forward updateerror: non-fast-forward update
푸시 시 원격 브랜치의 히스토리를 재작성하게 되어 거부되었습니다.
gitlinuxwindowsmacos
상세 보기 warning: CRLF will be replaced by LFGit이 줄 끝을 Windows 방식(CRLF)에서 Unix 방식(LF)으로 변환하고 있습니다.
Windows 환경에서 파일이 CRLF 줄 끝을 사용하지만, 저장소는 LF를 사용하도록 설정되어 있습니다. Git은 core.autocrlf 및 .gitattributes 설정에 따라 줄 끝을 자동으로 변환합니다.
이것은 오류가 아닌 경고입니다. 다음과 같이 설정하세요: git config core.autocrlf true (Windows) 또는 input (Mac/Linux). .gitattributes 파일에 * text=auto를 추가하면 플랫폼 간 일관된 줄 끝을 보장할 수 있습니다.
git config core.autocrlf trueerror: non-fast-forward update푸시 시 원격 브랜치의 히스토리를 재작성하게 되어 거부되었습니다.
fatal: Authentication failed원격 서버와의 Git 인증에 실패했습니다.
You are in 'detached HEAD' stateHEAD가 브랜치가 아닌 특정 커밋을 직접 가리키고 있어, 새 커밋이 고아 상태가 됩니다.
Permission denied (publickey)서버가 공개 키를 수락하지 않아 SSH 인증에 실패했습니다.
fatal: No submodule mapping foundGit 서브모듈이 참조되어 있지만 올바르게 초기화되지 않았습니다.
There is no tracking information for the current branch현재 브랜치가 원격 브랜치를 추적하도록 설정되어 있지 않습니다.