[번역][Solved] fatal: detected dubious ownership in repository

appstew·2022년 11월 23일
0

git,github

목록 보기
2/2

source: https://exerror.com/fatal-detected-dubious-ownership-in-repository/

개발을 하다 깃헙 상 다른 프로젝트를 클론 후 git status 시 fatal: detected dubious ownership in repository 에러가 뜨는 것을 해결하기 위해 검색


[Solved] fatal: detected dubious ownership in repository
[해결]치명적:저장소 상 중복된 소유자 감지됨.

해당 깃 리포가 있는 폴더의 소유권이 현재 유저랑 일치하지 않기 때문이다. 가령 root의 소유라거나.

fatal: detected dubious ownership in repository at '/repo
To add an exception for this directory, call:

	git config --global --add safe.directory /repo
  • 안내된 명령어를 치거나,

폴더 자체의 소유권을 변경한다.

sudo chown -cvR {소유자명}:{그룹이름} /{폴더이름}
profile
소프트웨어엔지니어가 되기 위해 달리는 중

0개의 댓글