반응형
Greensky0026
삽질러의 대환장 공사판
Greensky0026
전체 방문자
오늘
어제
  • 분류 전체보기 (241)
    • Language (56)
      • JAVA (13)
      • Swift (38)
      • Kotlin (4)
      • Dart (0)
      • PHP (0)
      • JavaScript (1)
    • IDE & Framework (92)
      • Spring (10)
      • Android (48)
      • iOS (8)
      • NodeJS (1)
      • CodeIgniter (3)
      • Flutter (1)
      • 분류중 (18)
    • Infra (8)
    • Database (12)
    • VCS (4)
    • Debug Log (34)
      • java (7)
      • swift (3)
      • Android (9)
      • Web (7)
      • 삽질기 (7)
    • Others (19)
      • 코딩테스트 풀이 (0)
      • IT 이야기 (18)
    • 쉼터 (2)
    • 개발공부 (14)
      • Network (1)
      • 자료구조와 알고리즘 (2)
      • Code design (8)
      • ETC (1)
      • 아카이브 (1)

블로그 메뉴

    공지사항

    • 프로그래머스 코딩 테스트 관련글 비공개 처리

    인기 글

    태그

    • Java
    • 개발
    • 공부
    • level1
    • 구축
    • ios
    • swift
    • JSP
    • 타입
    • 예제
    • kotlin
    • map
    • 프로그래머스
    • xcode
    • reduce
    • 프로그래밍
    • IT
    • swfit
    • Android
    • 코딩테스트

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    Greensky0026

    삽질러의 대환장 공사판

    VCS

    You've added another git repository inside your current repository.

    2022. 3. 30. 15:46
    반응형

     내부에 일부 디렉토리가 별도로 git init가 되어서 .git 폴더가 존재할때 발생한다.

     해당 디렉토리까지 푸시를 하고 싶다면,

    해당 디렉토리에 remote 저장소를 추가하던지 깔끔하게 .git 폴더를 밀던지 하면 된다.

     

    신규 디렉토리를 커밋하는데 아래와 같은 문구가 출력되었다.

    hint: You've added another git repository inside your current repository.
    hint: Clones of the outer repository will not contain the contents of
    hint: the embedded repository and will not know how to obtain it.
    hint: If you meant to add a submodule, use:
    hint:
    hint:   git submodule add <url> application
    hint:
    hint: If you added this path by mistake, you can remove it from the
    hint: index with:
    hint:
    hint:   git rm --cached application
    hint:
    hint: See "git help submodule" for more information.

     

    워닝이나 에러는 아니길래 푸시까지 진행했더니 또 된다.

    근데, 한 디렉토리가 업로드가 안됬다..

    그래서 해당 디렉토리를 따로 add해서 커밋하려니 아래의 에러가 떴다.

    Changes not staged for commit:
            modified:   application (modified content, untracked content)

    ?????????????

     

    그래서 해당 디렉토리를 봤더니 .git폴더가 존재했고... 별 영양가없이 누군가가 잘못 git init를 한것같아

    .git을 밀고 진행한 결과 정상적으로 모든 파일이 push되었다.

     

    반응형
    저작자표시 비영리 (새창열림)

    'VCS' 카테고리의 다른 글

    Github Action으로 CI/CD 구축하기  (0) 2023.06.07
    Git submodule을 통해 application.yml 관리를 해보자!  (0) 2023.06.07
    [Git] 실수로 삭제한 Local/Remote Branch 복구하기  (0) 2022.01.31
      'VCS' 카테고리의 다른 글
      • Github Action으로 CI/CD 구축하기
      • Git submodule을 통해 application.yml 관리를 해보자!
      • [Git] 실수로 삭제한 Local/Remote Branch 복구하기
      Greensky0026
      Greensky0026
      점이 모여 선이 된다. 내 삽질도 언젠간 거대한 지하 도시가 되겠지!

      티스토리툴바