title: Git, how to commit only a specific directory?
body: <p>in my rails app I have a /public/assets directory. I'm writing a rake task to compile and push assets. After all the assets are generated I want to checkin and push ONLY the assets folder to github.</p>
  
  <p>I have been using:</p>
  
  <pre><code>git add .
  git commit -a -m "assets"
  git push
  </code></pre>
  
  <p>Any ideas on how I can update this to only check-in and push /public/assets ?</p>
  
  <p>Thanks</p>