DEV/BugReport
[Git] fatal: detected dubious ownership in repository [프로젝트 경로] 오류 발생
무사뎀벨레
2024. 5. 13. 10:43
오류 발생
다음과 같이
fatal: detected dubious ownership in repository at [프로젝트 경로]
오류 발생
dembele@moussa MINGW64 [프로젝트 경로]
$ git status
fatal: detected dubious ownership in repository at '[프로젝트 경로]'
'[프로젝트 경로]' is owned by:
[이전 계정]
but the current user is:
[현재 계정]
To add an exception for this directory, call:
git config --global --add safe.directory [프로젝트 경로]
해결 방법
fatal: detected dubious ownership in repository at '[프로젝트 경로]'
와 같은 오류 문구는 [프로젝트 경로]에 대해 의심스러움 소유권을 탐지하였다고 알려주고 있다.
해결방법은
노출된 로그 중 맨 아랫줄에 있는
git config --global --add safe.directory [프로젝트 경로]
방법을 수행하면 위 문제가 해결된다.
반응형