Git fatal: detected dubious ownership in repository at '/etc'
2025. 1. 30. 12:50ㆍGit
에러
git status
fatal: detected dubious ownership in repository at '/etc'
To add an exception for this directory, call:
git config --global --add safe.directory /etc
원인: 해당 디렉토리에 대해서 권한이 없어서 발생함
해결
sudo git status
'Git' 카테고리의 다른 글
SVN 백업 및 복구 (0) | 2024.12.29 |
---|---|
Local과 Server 소스가 불일치 할때, git add -f (0) | 2024.08.12 |
현재 local 디렉토리를 git에 등록 (0) | 2024.03.16 |
gitlab-runner 명령어 (0) | 2022.03.13 |
gitlab 에러 (0) | 2022.02.01 |