[GIT] code 128 : detected dubious ownership in repository at 'director'

[GIT] code 128 : detected dubious ownership in repository at 'director'

source tree로 깃 내역을 불러오려는데 이런 오류가 확인되었다.

문구에 나오는대로 git config --add safe.directory {디렉토리} 로 명령어를 입력했는데 "fatal: not in a git directory"라는 오류가 뜨고 해결이 되지 않았다.

 

그래서 일단 .gitconfig 파일을 찾았다. 위치는 바탕화면 or 문서 or 사진의 상위 디렉토리다.

 

[safe]의 가장 아래에 다음과 같이 추가해주었다.

 

하지만 신뢰할 수 있는 디렉토리라면 D:/workspace/*처럼 설정하는것이 나중에 더 안건들이고 편할것같다.

'Errors' 카테고리의 다른 글

[Spring] 엑셀파일 깨짐 현상  (0) 2024.11.20
[Vue] make sure to provide the "name" option  (0) 2023.03.29