본문 바로가기
개발 과정/문제 해결

fatal: detected dubious ownership in repository at '경로' 오류 해결하기

by 개발자D 2024. 11. 15.

fatal: detected dubious ownership in repository at '경로' 오류 해결하기

오류 내용

안드로이드 스튜디오에서 git log를 확인할 수 없거나, commit 및 push가 불가능해질 때가 있습니다. 이때,  fatal: detected dubious ownership in repository at '경로' 라는 오류 메시지가 뜨게 됩니다.

🟡 오류 해결하기🟡

git bash에서 다음 명령어를 입력합니다.

git config --global --add safe.directory 경로 입력