title: gitignore just doesn't work. I can't get it to ignore .DS_Store & .gitignore files
body: <p>I have <code>.gitignore</code>d <code>.DS_Store</code> and <code>.gitignore</code> files. But still see them in the "git status".</p>
  
  <p>Can someone explain to me how I can make sure that the files that I am trying to ignore don't show up while checking status?</p>
  
  <pre><code>git status
  
  # Untracked files:
  #   (use "git add &lt;file&gt;..." to include in what will be committed)
  #
  #   .DS_Store
  #   .gitignore
  </code></pre>
  
  <p>I have the <code>.DS_Store</code> file in all the subfolders of my repository. So I want all of those to be ignored. What should I do?</p>
  
  <p>I have configured <code>.gitignore</code> file in the root directory of my repository.
  Should I copy this to all the subfolders for git to ignore these files?
  Is adding <code>.gitignore</code> in <code>.gitignore</code> file not acceptable?</p>
  
  <p>EDIT: Jan 21st 2014 ==================</p>
  
  <p>I still can't figure this out.
  The comments below didn't really help me. So I am reposting my query.</p>
  
  <p>Below is a snippet of my <code>git status</code> output. The actually output spans couple of pages. And all the files in this output are files/folders I don't want in my repo. These are untracked files so I have never <code>git add</code>ed them. But when I create a new project, I have to search for the related files/folders in this huge list before adding them, which is making the whole process a bit irritating.</p>
  
  <pre><code># Untracked files:
  #   (use "git add &lt;file&gt;..." to include in what will be committed)
  #
  #   ../../.DS_Store
  #   ../../Classes/
  #   ../.DS_Store
  #   ../Basics/.DS_Store
  #   ../adt/.metadata/
  #   ../adt/Fundamentals/.classpath
  #   ../adt/Fundamentals/.project
  #   ../adt/Fundamentals/.settings/
  #   ../adt/Fundamentals/bin/
  #   .DS_Store
  #   .metadata/
  </code></pre>
  
  <p>Below is my <code>.gitignore</code> file. Can someone please point out my mistake?</p>
  
  <pre><code>*.class
  *.pyc                                                                           
  colors                                                                          
  **/.DS_Store                                                                    
  
  # Mobile Tools for Java (J2ME)                                                  
  .mtj.tmp/                                                                       
  
  # Package Files #                                                               
  *.jar                                                                           
  *.war                                                                           
  *.ear                                                                           
  
  #Eclipse files                                                                  
  .project                                                                        
  
  # folders                                                                       
  .classpath/                                                                     
  .settings/                                                                      
  .metadata/                                                                      
  WEB-INF/lib/                                                                    
  META-INF/                                                                       
  Servers/ 
  
  # Byte-compiled / optimized / DLL files                                         
  __pycache__/                                                                    
  *.py[cod]                                                                       
  
  # C extensions                                                                  
  *.so                                                                            
  
  # Distribution / packaging                                                      
  bin/                                                                            
  build/                                                                          
  develop-eggs/                                                                   
  dist/                                                                           
  eggs/                                                                           
  lib/                                                                            
  lib64/                                                                          
  parts/   
  </code></pre>