title: .gitignore and node_modules
body: <p>I am trying to figure out the best way to handle node_modules in git. From what I read, there are two options:</p>
  
  <p>A. Keep all the node_modules in the git repository, together with my project. This way, a person cloning my project does not have to install any modules.</p>
  
  <p>B. Don't keep any node_modules in the git repository, i.e., have a ".gitignore" file that contains "node_modules".</p>
  
  <p>However, in some projects, I don't see any of these two options. For example, in <a href="https://github.com/harthur/brain" rel="nofollow">this node.js project</a>, there are no node_modules, but also no .gitignore file...</p>
  
  <p>When I fork this repo, and do <em>npm install</em>, the folder is filled with node_modules, and since there is no .gitignore, git tries to commit them...</p>
  
  <p>What am I doing wrong?</p>