title: git .ignore not working in a directory
body: <p>I have the following .gitignore file</p>
  
  <pre><code># file named .gitignore
  
  system/application/config/database.php
  system/application/config/config.php
  system/logs
  modules/recaptcha/config/*
  </code></pre>
  
  <p>However when I add any changes in config and recapcha.php, git status warns me as following.
  When I add any changes to database.php. it does not show it in status</p>
  
  <pre><code>shin@shin-Latitude-E5420:/var/www/myapp$ git status
  # On branch master
  # Your branch is ahead of 'origin/master' by 1 commit.
  #
  # Changes not staged for commit:
  #   (use "git add &lt;file&gt;..." to update what will be committed)
  #   (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
  #
  #   modified:   modules/recaptcha/config/recaptcha.php
  #   modified:   system/application/config/config.php
  #
  no changes added to commit (use "git add" and/or "git commit -a")
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p>Thanks in advance.</p>
  
  <p>I am using git version 1.7.5.1 on Ubuntu 11.04</p>