title: .gitignore is not ignoring directories
body: <p><strong>What I did:</strong></p>
  
  <p>I think there were some weird configurations from the github gui that caused this issue and prevented me from being able to easily use git from command line or even git-bash.</p>
  
  <p>I ended up just uninstalling github and git then reinstalling just git for windows. I now have everything running off the command line(except ssh which I run from git-bash). Much easier and more reliable that the github gui.</p>
  
  <p>Thanks to mu 無 for taking the time to try to figure this out. I didn't end up using his answer, but if I hadn't needed to do a reinstall of git it would have been what I needed to do.</p>
  
  <hr>
  
  <p>I am using the github gui on my local machine. I just noticed that a commit I was about to make was going to update all of my recently update node modules. I set up my .gitignore to ignore the entire <code>node_modules/</code> directory.</p>
  
  <p>I'm not sure what to do about this. All the file types I included in .gitignore were ignored. It's just the directories that it seems to ignore.</p>
  
  <p>Here is my .gitignore file:</p>
  
  <pre><code>#################
  ## Sublime Text
  #################
  
  *.sublime-project
  *.sublime-workspace
  
  #################
  ## Images
  #################
  
  *.jpg
  *.jpeg
  *.png
  *.gif
  *.psd
  *.ai
  
  #################
  ## Windows detritus
  #################
  
  # Windows image file caches
  Thumbs.db
  ehthumbs.db
  
  # Folder config file
  Desktop.ini
  
  # Recycle Bin used on file shares
  $RECYCLE.BIN/
  
  # Mac crap
  .DS_Store
  
  #################
  ## Directories
  #################
  
  dev/
  cms/core/config/
  node_modules/
  </code></pre>