git

[git][에러] fatal: detected dubious ownership in repository at

ooin 2024. 2. 5. 14:47
반응형

 

새로운 git repository 생성하고 remote하는 도중에

fatal: detected dubious ownership in repository at 와 같은 에러가 발생하였다.

 

위 에러는 clone/push 와 같은 명령을 실행하려고 할때 레포지토리에 대한 모호한 소유권 때문에 발생하는 것이라고 한다.

에러 해결 방법은 터미널에서 알려주는 것과 같이

git config --global --add safe.directory [git local repo 위치]

 

위 명령어를 입력해주면 해결된다.

 

참고: Git command returns fatal error: "detected dubious ownership" | Bitbucket Data Center and Server | Atlassian Documentation

반응형