title: Why is .gitignore not working when I use git add *?
body: <p>To satisfy github 100Mb requirement, I run the following to ignore some large files:</p>
  
  <pre><code>$ find ./* -size +100M | cat &gt;&gt; .gitignore
  </code></pre>
  
  <p>but when I run add * later, it is still adding the >100MB file to commit. </p>
  
  <pre><code>$ git add *
  warning: LF will be replaced by CRLF in hw1/input/act_test.csv.
  The file will have its original line endings in your working directory
  </code></pre>
  
  <p>How can I make this gitignore work?
  Thanks in advance for ideas and advices.</p>
  
  <p>add:
  my intent is to make <code>add *</code> not track the large csv file any more, following answer does not seem to work.</p>