내 코드 히스토리를 git 저장소로 푸는 동안 Objective-C 프로젝트가 서브 모듈로 작동한다는 것을 알았습니다. 이는 Objective-C 프로젝트를 밀어 넣으면 this과 같은 서브 모듈로 작동한다는 것을 의미합니다.어떻게 자식 서브 모듈 잔해를 삭제할 수 있습니까?
그 사실을 알게 된 후 .git 폴더를 다시 초기화하려고했습니다. (삭제하고 'git init'호출 시도)
하지만 전혀 작동하지 않을 것이며 하위 모듈은 아직 살아 있습니다.
도 님의 하위 모듈 및 명령을 시도했습니다. 그러나, 그 후, 내 파일을 git 저장소로 푸시하려고 했는데도이 메시지가 표시됩니다.
Sogos-Macbook:Test code dkswogus7530$ git push -u origin master
To https://github.com/JaehyunAhn/cpuls2_book_review.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/JaehyunAhn/cpuls2_book_review.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
는 또한 명령
자식 끌어 오기 원산지 마스터 및 해당 명령이 메시지
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 537 bytes | 0 bytes/s, done.
Total 5 (delta 2), reused 0 (delta 0)
remote: error: object d5c202897cf6f769235a2707d15719636fe37984:contains duplicate file entries
remote: fatal: Error in object
error: unpack failed: index-pack abnormal exit
To https://github.com/JaehyunAhn/cpuls2_book_review.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'https://github.com/JaehyunAhn/cpuls2_book_review.git'
어떻게이 문제를 해결할 수를 중단 & 입력 내 자식 저장소를 삭제 업데이트하려고?
이 submodule repository은 this, this 및 this을 가리킨다. 만약 모든 사람이
자식 RM은 내가 그 또한 시도 '서브 모듈 디렉토리' – johnMa
을 --cached하지만, Sogos-Macbook : 테스트 코드 dkswogus7530 $ git rm --cached ACM_craft 치명적 : 'ACM_craft'를 재귀 적으로 제거하지 않음 -r – Sogo