Git 에러에러
fatal: not a git repositoryfatal: not a git repository
현재 디렉터리가 Git 저장소 내부가 아닙니다.
gitlinuxwindowsmacos
이 에러의 원인
.git 폴더가 없는 디렉터리에서 git 명령을 실행했습니다. 잘못된 디렉터리에 있거나, 저장소가 초기화되지 않았거나, .git 폴더가 삭제되었을 수 있습니다.
수정 방법
cd 명령으로 올바른 저장소 디렉터리로 이동하세요. 새 저장소를 초기화하려면 git init을 실행하세요. .git 폴더가 실수로 삭제된 경우 원격 저장소에서 다시 클론하세요.
예제
git init관련 에러 코드
Git 에러경고
warning: CRLF will be replaced by LFwarning: CRLF가 LF로 대체됨
Git이 줄 끝을 Windows 방식(CRLF)에서 Unix 방식(LF)으로 변환하고 있습니다.
gitwindows
상세 보기 Git 에러에러
fatal: refusing to merge unrelated historiesfatal: refusing to merge unrelated histories
공통 조상을 공유하지 않는 두 브랜치의 병합을 Git이 거부합니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
remote: error: GH006: Protected branch update failedremote: error: Protected branch update failed
브랜치 보호 규칙으로 인해 보호된 브랜치로의 push가 거부되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
error: non-fast-forward updateerror: non-fast-forward update
푸시 시 원격 브랜치의 히스토리를 재작성하게 되어 거부되었습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러정보
Already up to date.Already up to date
병합 또는 pull하려는 브랜치의 변경사항이 이미 현재 브랜치에 모두 반영되어 있습니다.
gitlinuxwindowsmacos
상세 보기 Git 에러에러
error: empty commit messageerror: empty commit message
커밋 메시지가 비어 있어 커밋이 중단되었습니다.
gitlinuxwindowsmacos
상세 보기