title: Add .gitignore to committed files
body: <p>I am using git mistakenly i have not ignored the jpeg files in the gitignore.</p>
  
  <p>I my repo increasing day by day because of the images.</p>
  
  <pre><code>git rm --cached blog/wp-content/upload/*
  </code></pre>
  
  <p>after running this command i am getting following error </p>
  
  <pre><code>fatal: pathspec 'blog/wp-content/upload/' did not match any files
  </code></pre>
  
  <p>Please let me know how to un-track these files.</p>
  
  <p>Also i need to untrack magento files which i have committed to repo</p>