title: How to add a folder to the .gitignore
body: <p>Maybe my Googling skills are lacking but this seems like a question that should give me back thousands of hits and yet, I can't find a straight answer.</p>
  
  <p>Simple as this:</p>
  
  <p>I do constant pushes to github to share with a remote developer. We both have <code>npm</code> and <code>bower</code> installed. No need to push these huge folders to github all the time. My <code>node_modules</code> are ignored. But I can't seem to get <code>gitignore</code> to ignore my <code>bower_components</code> folder</p>
  
  <p>I'm not too savvy on cmd, I barely scratch the surface so if you ar going to suggest that, please don't assume I know what you are talking about. Otherwise if it is as easy as adding it to the file itself using an IDE, well, I did that and no cigar. Here is my .gtignore file for your review</p>
  
  <pre><code># Logs
  logs
  *.log
  npm-debug.log*
  
  # Runtime data
  pids
  *.pid
  *.seed
  
  # Directory for instrumented libs generated by jscoverage/JSCover
  lib-cov
  
  # Coverage directory used by tools like istanbul
  coverage
  
  # nyc test coverage
  .nyc_output
  
  # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-    task-files)
  .grunt
  
  # node-waf configuration
  .lock-wscript
  
  # Compiled binary addons (http://nodejs.org/api/addons.html)
  build/Release
  
  # Dependency directories
  node_modules
  jspm_packages
  bower_components
  
  # Optional npm cache directory
  .npm
  
  # Optional REPL history
  .node_repl_history
  </code></pre>
  
  <p>Am I missing anything? How do I make the bower_components ignored? </p>
  
  <p>Thank you</p>