title: gitignore does not ignore .idea directory
body: <p>Working on a Symfony2 project using phpStorm IDE, I have added couple of files to git ignore but one file despite being added to git ignore is always appearing....I have tried multiple times but its always there</p>
  
  <p>.gitignore file:</p>
  
  <pre><code>/app/config/parameters.yml
  /bin/
  /build/
  /composer.phar
  /vendor/
  /web/bundles/
  /app/bootstrap.php.cache
  /app/cache/*
  !app/cache/.gitkeep
  /app/config/parameters.yml
  /app/logs/*
  !app/logs/.gitkeep
  /app/phpunit.xml
  
  #IDE metadata
  **.idea/**
  
  #Bash files
  run.sh
  </code></pre>
  
  <p>And it is the .idea folder/files that git just will not ignore: </p>
  
  <pre><code>On branch develop
  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:   .idea/workspace.xml
  
  no changes added to commit (use "git add" and/or "git commit -a")
  </code></pre>
  
  <p>Any idea why git will just not ignore the whole directory like i have specyfied in gitignore...?</p>