Git 에러에러
fatal: shallow update not allowedfatal: shallow update not allowed
얕은 클론에서의 push가 거부되었습니다. 원격이 얕은 업데이트를 허용하지 않습니다.
gitlinuxwindowsmacos
이 에러의 원인
저장소가 얕은 클론(--depth로 생성)이며 원격이 얕은 클론에서의 push를 허용하지 않습니다. push를 위해 전체 히스토리가 필요합니다.
수정 방법
얕은 클론을 전체 클론으로 바꾸세요: git fetch --unshallow origin. 그런 다음 다시 push하세요. CI 환경에서는 클론 깊이를 늘리거나 얕은 클론 대신 전체 클론을 사용하세요.
예제
git fetch --unshallow origin관련 에러 코드
Git 에러에러
CONFLICT (content): Merge conflict병합 충돌
같은 줄이 두 브랜치에서 모두 수정되어 Git이 변경 사항을 자동으로 병합하지 못했습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: remote origin already existsfatal: remote origin already exists
지정한 이름의 원격 저장소가 이미 설정되어 있습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러정보
No local changes to saveNo local changes to save
git stash가 스태시할 수정된 추적 파일을 찾지 못했습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: Unable to create lock filefatal: Unable to create lock file
Git 잠금 파일(.lock)이 존재하여 작업이 차단되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러치명적
error: object file is emptyerror: object file is empty
Git 객체 파일이 손상되어 데이터가 없습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: Not possible to fast-forward, abortingfatal: Not possible to fast-forward, aborting
브랜치가 분기되어 --ff-only 옵션을 사용한 pull이 실패했습니다.
gitlinuxwindowsmacos
상세 보기