title: .gitignore file with yii framework
body: <p>I have a yii 1 application. And I have a .gitignore file in the folder: Yii/sdi. The file .gitignore looks like this:</p>
  <pre><code>assets/*
  !assets/.gitignore
  protected/runtime/*
  !protected/runtime/.gitignore
  protected/data/*.db
  </code></pre>
  <p>But by source control there are still 10K changes, for example this files in the folder:</p>
  <blockquote>
  <p>C:\xampp\htdocs\yii\sdi\protected\components\widgets\select2\assets\js\i18n</p>
  </blockquote>
  <p>So what I have to change in the .gitignore file?</p>
  <p>Thank you</p>
  <p>I deleted the folder SDI. So I have it now directly in the root folder - all the other folders.</p>
  <p>And I have the .gitignore file like this:</p>
  <pre><code># phpstorm project files
  .idea
  
  # netbeans project files
  nbproject
  
  # zend studio for eclipse project files
  .buildpath
  .project
  .settings
  
  # windows thumbnail cache
  Thumbs.db
  
  # composer vendor dir
  /vendor
  
  # composer itself is not needed
  composer.phar
  
  # Mac DS_Store Files
  .DS_Store
  
  # phpunit itself is not needed
  phpunit.phar
  # local phpunit config
  /phpunit.xml
  
  tests/_output/*
  tests/_support/_generated
  
  #vagrant folder
  /.vagrant
  
  protected/components/widgets/select2/assets/*
  
  assets/*
  !assets/.gitignore
  protected/runtime/*
  !protected/runtime/.gitignore
  protected/data/*.db
  </code></pre>
  <p>And the .gitignore file is in the .idea folder</p>
  <p>So Webscraper is root folder then in the root folder I have a .idea folder. and in the .idea folder there I have the .gitignore file.</p>
  <p>oke, if I do this:</p>
  <pre><code>!.gitignore
  
  protected/components/widgets/select2/assets/*
  
  # Default ignored files
  /shelf/
  /workspace.xml
  # Datasource local storage ignored files
  /dataSources/
  /dataSources.local.xml
  # Editor-based HTTP Client requests
  /httpRequests/
  
  # phpstorm project files
  .idea
  
  # netbeans project files
  nbproject
  
  # zend studio for eclipse project files
  .buildpath
  .project
  .settings
  
  # windows thumbnail cache
  Thumbs.db
  
  # composer vendor dir
  vendor/
  
  # composer itself is not needed
  composer.phar
  
  # Mac DS_Store Files
  .DS_Store
  
  # phpunit itself is not needed
  phpunit.phar
  # local phpunit config
  /phpunit.xml
  
  tests/_output/*
  tests/_support/_generated
  
  #vagrant folder
  /.vagrant
  
  
  .protected/vendor/*
  
  assets/*
  !assets/.gitignore
  protected/runtime/*
  !protected/runtime/.gitignore
  protected/data/*.db
  
  
  </code></pre>
  <p>still have 9K plus changes</p>