title: How to push code from local git to github excluding media folder?
body: <p>I am currently using local repo on windows to save my code. It basically keeps tracks of all the files and folder in the working directory. I now want to also push it to github every time I commit locally for backup purposes but exclude <code>public/images</code> folder since there is no need for images to be on github. I do <code>git commit -a -m "this locally commits all the files and folder including images"</code> for local repo so what can I do to push it to github but exclude a specific folder public/images.</p>
  
  <p>The way I push to my github is </p>
  
  <pre><code>git remote add origin
  git remote -v
  git push origin master
  </code></pre>