Git 에러에러
fatal: This operation must be run in a work treefatal: 이 작업은 작업 트리에서 실행해야 함
해당 작업에 작업 트리가 필요하지만 저장소가 bare 형식(작업 디렉터리 없음)입니다.
gitlinuxwindowsmacos
이 에러의 원인
--bare로 생성된 bare 저장소에 있습니다. Bare 저장소는 작업 디렉터리가 없어 checkout, 작업 트리에서의 diff, 파일이 필요한 기타 작업을 지원하지 않습니다.
수정 방법
작업 트리를 얻으려면 bare 저장소를 클론하세요: git clone bare-repo.git. 실수로 bare 저장소를 만들었다면 클론한 뒤 클론본에서 작업하세요. bare 저장소는 원격 저장소로만 사용하세요.
관련 에러 코드
Git 에러정보
Already up to date.Already up to date
병합 또는 pull하려는 브랜치의 변경사항이 이미 현재 브랜치에 모두 반영되어 있습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: Authentication failedfatal: Authentication failed
원격 서버와의 Git 인증에 실패했습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러치명적
fatal: index file corruptfatal: 인덱스 파일이 손상됨
Git 인덱스 파일(.git/index)이 손상되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
fatal: remote origin already existsfatal: remote origin already exists
지정한 이름의 원격 저장소가 이미 설정되어 있습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
remote: error: GH006: Protected branch update failedremote: error: Protected branch update failed
브랜치 보호 규칙으로 인해 보호된 브랜치로의 push가 거부되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
error: sparse-checkout is not enablederror: sparse-checkout이 활성화되지 않음
sparse-checkout 작업을 시도했지만 해당 기능이 활성화되어 있지 않습니다.
gitlinuxwindowsmacos
상세 보기