Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4013520
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:22:54+00:00 2026-05-20T09:22:54+00:00

I recently reorganized my dotfiles to live inside a Git repository at ~/Dropbox/dotfiles and

  • 0

I recently reorganized my dotfiles to live inside a Git repository at ~/Dropbox/dotfiles and I’m using pathogen to bundle all Vim addons inside ~/Dropbox/dotfiles/home/.vim/bundle. These addons were added as Git submodules.

Now the problem is, when I run Vim, it automatically generates the documentation for all addons and puts them inside each submodule directory. This adds untracked content to the submodules, which I’d like to avoid.

ruby-1.8.7-p330@gs ~/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")

I tried to add a .gitignore file to the root of my Git repository to ignore all doc folders inside submodules, but this doesn’t seem to work:

home/.vim/bundle/**/doc

My question: is there a way to ignore files and folders inside Git submodules or maybe configure Vim to create the documentation in a folder outside the Git repository?

EDIT: as Randy Morris pointed out, this might be a duplicate of Generating tags to different location by pathogen

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:22:54+00:00Added an answer on May 20, 2026 at 9:22 am

    You should add .gitignore within each of your submodules.
    Since said submodules are like nested Git repo, they take care of their own ignore rules, and their status wouldn’t be influenced by the .gitignore of the parent repo (as explained here).

    For a vim-specific setting, as Randy Morris mentions in the comment, see the SO question “Generating tags to different location by pathogen“.


    Note: as Nick mentions in this comments, and as illustrated by the answer to “Generating tags to different location by pathogen“, a config like:

    [submodule "path/to/submodule"]
        path = path/to/submodule
        url = http://github.com/username/repo.git
        ignore = untracked  # <====
    

    will work and make that submodule ignored by git status.
    But “ignore = untracked” means at least Git1.7.2.

    The config is usually found in the .git/ folder of your repo.


    Note: nurettin mentions in the comments:

    ignore = dirty did it for me

    Commit aee9c7d details the difference between untracked and dirty.

    • “dirty“: Only differences of the commit recorded in the superproject and the submodules HEAD will be considered modifications, all changes to the work tree of the submodule will be ignored.
      When using this value, the submodule will not be scanned for work tree changes at all, leading to a performance benefit on large submodules.

    • “untracked“: Only untracked files in the submodules work tree are ignored, a changed HEAD and/or modified files in the submodule will mark it as modified.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently reorganized a solution-in-progress from 24 projects to 4. To keep the copious
In Visual Studio 2005, I've recently reorganized a solution with over 30 projects into
recently I started using storyboard and I've the following situation: I want to set
Recently our WPF/Entity Framework 4.0 application has become unstable after we began using backgroundworkers
Recently I faced a issue when using len() in a query to find out
Recently moved from svn to git, pardon my newbie question. In our release process,
Recently I was trying to determine the time needed to calculate a waveform using
Recently, I like using CSS-Table Layouts more and more. When I had another issue
Recently I'm using IBM Websphere Server for some estimates. Include: - WebSphere AS Community
Recently I reorganized my Adobe AIR project as a maven project so I could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.