티스토리 뷰

반응형

 

 

 



 

 

git

 

 

회사 PC를 오랜기간 사용해서 변경하고 소스폴더들이 있는 디스크만 옮겼는데

OS 유저가 변경되어 올바른 깃 로컬 레포지토리가 동작이 되지 않았다.

 

근데 이는 간단하게 해결 할 수 있다.

 

git status 를 입력하면

company@jaybee MINGW64 /d/GitHub/project
$ git status
fatal: detected dubious ownership in repository at 'D:/GitHub/project'
'D:/GitHub/project' is owned by:
        BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
        jaybee/company (S-1-5-21-3506454000-962289665-893259382-1001)
To add an exception for this directory, call:

        git config --global --add safe.directory D:/GitHub/project

 

 

깃 로컬 레포지토리 현재 상황이 나오고 

아래 config 명령어를 통해 해결하라고 알려준다.

 

그대로 입력하면 문제가 해결된다.

 

 



 

 

반응형

'형상관리 > Git' 카테고리의 다른 글

[Git] push한 브런치, rebase 실수 되돌리기.  (0) 2024.06.20
[Git] Branch 덮어쓰기  (2) 2023.02.01
댓글
반응형
최근에 올라온 글
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Total
Today
Yesterday