title: git archive with unstaged changes
body: <p>I'm building my own rpm's. Usually I use git archive to get a tarball from the commit or tag I'm interested in (suppose I have put a tag 1.0):</p>
  
  <pre><code>git archive --format=tgz --prefix=product-1.0 1.0 &gt; product-1.0.tgz
  </code></pre>
  
  <p>suppose now I am doing some local developments that I haven't committed yet and I want to get an archive; is there any way to obtain this without having to commit?</p>
  
  <p><strong>edit</strong> I could just use something like this:</p>
  
  <pre><code>tar cf product-1.0.tgz --exclude=.git
  </code></pre>
  
  <p>but that will include all binaries and other untracked files which I prefer not...</p>