Git 에러치명적
fatal: index file corruptfatal: 인덱스 파일이 손상됨
Git 인덱스 파일(.git/index)이 손상되었습니다.
gitlinuxwindowsmacos
이 에러의 원인
.git/index 파일이 손상되었습니다. 일반적으로 쓰기 작업 중 크래시, 디스크 오류, 또는 동시 Git 작업이 서로 간섭하여 발생합니다.
수정 방법
손상된 인덱스를 삭제하고 다시 만드세요: rm .git/index && git reset. HEAD를 기준으로 인덱스가 재구성되며, 작업 디렉터리의 파일은 그대로 유지됩니다. git status를 실행해 상태가 올바른지 확인하세요.
예제
rm .git/index && git reset관련 에러 코드
Git 에러에러
fatal: ambiguous argumentfatal: ambiguous argument
인수가 리비전인지, 경로인지, 또는 다른 무언가인지 Git이 판단할 수 없습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러경고
You are in 'detached HEAD' stateDetached HEAD 상태
HEAD가 브랜치가 아닌 특정 커밋을 직접 가리키고 있어, 새 커밋이 고아 상태가 됩니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: refusing to merge unrelated historiesfatal: refusing to merge unrelated histories
공통 조상을 공유하지 않는 두 브랜치의 병합을 Git이 거부합니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
There is no tracking information for the current branchThere is no tracking information for the current branch
현재 브랜치가 원격 브랜치를 추적하도록 설정되어 있지 않습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
error: failed to push some refserror: failed to push some refs
원격 저장소에 로컬에 없는 변경 사항이 있어 푸시가 거부되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: No submodule mapping foundfatal: No submodule mapping found
Git 서브모듈이 참조되어 있지만 올바르게 초기화되지 않았습니다.
gitlinuxwindowsmacos
상세 보기