최근에 도트 파일을 ~/Dropbox/dotfiles
에있는 Git 저장소에 살도록 재구성했습니다. 병원균을 사용하여 모든 Vim 애드온을 ~/Dropbox/dotfiles/home/.vim/bundle
번들로 묶어 사용하고 있습니다. 이 Addons는 Git 서브 모듈로 추가되었습니다..gitignore 파일을 자식 서브 모듈에 추가했습니다.
이제는 Vim을 실행할 때 자동으로 모든 애드온에 대한 설명서를 생성하여 각 하위 모듈 디렉토리에 넣습니다. 이렇게하면 추적 할 수없는 콘텐츠가 하위 모듈에 추가되므로 피하고 싶습니다.
[email protected] ~/Dropbox/dotfiles ‹master*› $ git st
# On branch master
# Changed but not updated:
# (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: home/.vim/bundle/fuzzyfinder (untracked content)
# modified: home/.vim/bundle/l9 (untracked content)
# modified: home/.vim/bundle/matchit (untracked content)
# modified: home/.vim/bundle/ruby (untracked content)
# ...
no changes added to commit (use "git add" and/or "git commit -a")
내가 서브 모듈 내부의 모든 doc
폴더를 무시하는 내 Git 저장소의 루트에 .gitignore
파일을 추가했지만,이 작동하지 않습니다
home/.vim/bundle/**/doc
내 질문 :이 Git 하위 모듈 내의 파일과 폴더를 무시하거나 Git 저장소 외부의 폴더에 문서를 만들도록 Vim을 구성하는 방법?
편집 : 랜디 모리스는 지적이 당신은 당신의 서브 모듈의 각 내에서 .gitignore
을 추가해야 Generating tags to different location by pathogen
가능한 중복 : http://stackoverflow.com/questions/4343544/generating-tags-to-different- location-by-pathogen # 4346300 –
네 말이 맞아. 질문에 플래그를 지정하려고합니다. 감사! – rubiii
참고 :'.gitignore'에서'**'는 "어느 깊이"라도 의미하지 않습니다. –