title: Gitignore - Ignore only images & ignore everything except .. in single command
body: <p>How can I write to .gitignore:</p>
  
  <ol>
  <li><p>to ignore only images ( .jpg, .jpeg, .png, .gif )</p></li>
  <li><p>to ignore everything except videos ( .mp4, .flv etc )</p></li>
  </ol>
  
  <p>using a single command each time?</p>