Ignoring changes in git submodules


For those Vimmers using Pathogen to manage your runtime path, you’ll find that Pathogen creates tags files in the bundle’s doc folder.

Thanks to this Stack Overflow post, all you need is Git 1.7.2 and the following command:

 for s in `git submodule  --quiet foreach 'echo $name'`; 
      do git config submodule.$s.ignore untracked; 
 done

Happy Vimming!