반응형
내부에 일부 디렉토리가 별도로 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 |