title: How do I use .gitignore in a folder?
body: <p>I have an img folder within my git repository. I want to use .gitignore to exclude the images within the folder. </p>
  
  <p>I used <code>cd &lt;file path&gt;</code> to enter that folder and <code>mkdir .gitignore</code>. But when I <code>add</code> the git the images are not excluded. What do I need to add to keep them excluded from the <code>add</code>?</p>