Search code examples
gitgithubmeteorgitignoredirectory-structure

Git ignores MeteorJS directories /lib and /server


I'm developing an app using MeteorJS, and when uploading to GitHub, the directories /lib and /server are ignored. Any ideas why? Here are the contents of my .gitignore file that was automatically generated by MeteorJS:

local


Solution

  • As you noted git (purposely) does not track empty directories (well, directories really). Here is a (quite lengthy but interesting) read on this topic if you are interest: How can I add an empty directory to a Git repository? . It includes an interesting link to an article by Linus T himself as to why this shouldn't happen.

    BTW -- I hope that .gitignore file was in your .meteor directory? The purpose is to not pollute your git repo with the local MongoDB storage that meteor creates and uses by default. That can get large!