기록
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
블로그 내 검색

기록

  • Programming/에러노트

    [GIT] fatal: unsafe repository ('~ㄱ경로' is owned by someone else)To add an exception for this directory, call:

    2022. 11. 18.

    by. 개발도비

    git을 사용할 때 다음과 같은 에러가 발생할 수 있다

     

     

    fatal: unsafe repository ('~ㄱ경로' is owned by someone else)To add an exception for this directory, call:

     

     

    우선 git에서 발표한 보안 취약점 이슈에 대해 읽어보자

    https://github.blog/2022-04-12-git-security-vulnerability-announced/

     

    Git security vulnerability announced | The GitHub Blog

    Upgrade your local installation of Git, especially if you are using Git for Windows, or you use Git on a multi-user machine.

    github.blog

     

    해결방법 1. git을 2.35.2 이상으로 업데이트한다
    $ sudo add-apt-repository ppa:git-core/ppa 
    $ sudo apt update
    $ sudo apt install git

     

    해결방법 2.  명령어를 통해 해당 디렉토리를 안전한 디렉토리로 지정한다
    $ git config --global --add safe.directory 디렉토리경로

     

     

    ** GUI로 client로 fork를 사용하고 있다면 화면에 나와 있는 Mark repository as safe 버튼을 클릭해주기만 해도 된다.

    ** 만약 동일한 오류가 계속 반복된다면 Backslash(\) 대신 Slash(/)를 사용해 경로를 지정해볼 것.

    'Programming > 에러노트' 카테고리의 다른 글

    Address localhost:1099 is already in use  (0) 2023.03.29
    cannot find a valid baseurl for repo base/7/x86_64  (0) 2022.11.23
    [Tomcat/톰캣] The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path  (0) 2022.08.18
    java.lang.AbstractMethodError: org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V  (0) 2022.08.11
    Error assembling WAR: webxml attribute is required (or pre-existing WEB- INF/web.xml if executing in update mode  (0) 2022.08.10

    댓글

    관련글

    • Address localhost:1099 is already in use 2023.03.29
    • cannot find a valid baseurl for repo base/7/x86_64 2022.11.23
    • [Tomcat/톰캣] The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path 2022.08.18
    • java.lang.AbstractMethodError: org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V 2022.08.11
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
개발도비

티스토리툴바