Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 깃에러
- 이미지연산
- 코드
- git
- windowpowershell
- 데이터분석
- 엑셀
- 파이썬에러
- 파이썬
- OS
- 이미지
- 코딩
- 머신러닝
- 반복문
- 일치도
- 라이브러리
- powershell에러해결
- defaultbranch
- 통계
- 프로그래밍
- 카파
- github
- gitcommand
- powershell에러
- image
- 깃허브
- 이미지읽어오기
- 데이터
- 이클립스프로젝트
- Python
Archives
- Today
- Total
나중에 내가 보려고 만든 블로그
Git fatal: detected dubious ownership in repository at 에러 해결 본문
어제까지 잘되던 깃허브 커밋이 갑자기 이런 에러가 발생했다.
일단 fatal로 시작해서 좀 무서웠지만 읽어보니 아래에 나온 커맨드를 실행해주면 됨.
fatal: detected dubious ownership in repository at '<path to the repository>'
To add an exception for this directory, call:
git config --global --add safe.directory <path to the repository>
찾아보니 prevent a user from executing git commands in a repository owned by a different user. 때문에 생겨난 보안정책이라고 한다. 내가 기관에서 제공해주는 가상환경에서 웹페이지 개발하고 있어서 이런 오류가 생긴듯하다. 근데 여태껏 없다가 한달만에 처음 나타난 오류...ㅎ....
워크스페이스 경로를 <>에 넣고 아래 명령어를 실행해주면 된다.
git config --global --add safe.directory <path to the repository>
그리고 나는 또 다시 같은 에러가 나길래 VS code랑 커맨드창 다 끄고 다시 실행해서
git add * 했더니 정상적으로 커밋되었음.
세상엔 배울 것이 너무나 많고 에러는 더 많다.
'etc.' 카테고리의 다른 글
| [eclipse] Some projects cannot be imported because they already exist in the workspace 오류 해결 (0) | 2025.02.11 |
|---|---|
| GitHub default branch 변경 (0) | 2025.02.03 |
| Window PowerShell sbt compile 에러 (0) | 2025.01.21 |
| [LaTeX ] overleaf에서 table 만들기 (0) | 2022.03.18 |