Tôi đang tạo kho lưu trữ git cho cài đặt MacVim của mình. Một số plugin trong kho lưu trữ của tôi có các thư mục .git và repo của riêng chúng. Vấn đề là ... khi tôi cố thêm một trong các thư mục này vào kho lưu trữ chính của tôi, nó không làm gì cả.Git thêm Thư mục với Kho lưu trữ Git Hiện tại
tôi đoán:
tôi không thể thêm các thư mục vì nó là một repo git trên riêng của nó. Tôi phải thêm dưới dạng mô-đun con hoặc xóa thư mục .git.
Làm cách nào để thêm repos phụ của tôi dưới dạng submodule?
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")