MacVim 설치를위한 git 저장소를 만들고 있습니다. 내 저장소에있는 일부 플러그인에는 자체 .git 폴더와 저장소가 있습니다. 문제는 ...이 폴더 중 하나를 기본 저장소에 추가하려고하면 아무 것도 수행하지 않습니다.Git에 기존 Git 저장소가있는 폴더 추가
내 생각 엔 : 그것은 자신의 자식의 repo이기 때문에
내가 폴더를 추가 할 수 없습니다. 하위 모듈로 추가하거나 .git 폴더를 제거해야합니다.
하위 리포지토리를 하위 모듈로 추가하려면 어떻게합니까?
bryan-mini:.vim bsaltzman$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: bundle/YouCompleteMe (modified content)
# modified: bundle/nerdtree (modified content)
# modified: bundle/ultisnips (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
// This
bryan-mini:.vim bsaltzman$ git add bundle/YouCompleteMe/
// OR THIS
bryan-mini:.vim bsaltzman$ git submodule add bundle/YouCompleteMe/
repo URL: 'bundle/YouCompleteMe/' must be absolute or begin with ./|../
bryan-mini:.vim bsaltzman$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: bundle/YouCompleteMe (modified content)
# modified: bundle/nerdtree (modified content)
# modified: bundle/ultisnips (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")