
$ git checkout 'feature/#105-setting-fcm'
깃 브랜치를 바꾸려고 했는데 아래와 같은 오류가 발생했다.
fatal: detected dubious ownership in repository at 'C:/Pickle-FE'
'C:/Pickle-FE' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-3003035046-2668303490-1917977511-1001'
To add an exception for this directory, call:
이 오류는 현재 사용자가 소유하지 않은 디렉터리에서 Git 명령어를 실행하려고 할 때 발생한 것이다.
이를 해결하기 위해서는 Git이 해당 디렉터리를 안전한 디렉터리로 인식하도록 설정해야 한다.
이 명령어를 입력하면 해결된다.
git config --global --add safe.directory C:/Pickle-FE