title: How to Use Git Archive to Create a Tarball on Windows?
body: <p>In Git Bash I've tried to use this command:</p>
  
  <pre><code>$ git archive -o test.tar.gz master
  gzip: compressed data not written to a terminal. Use -f to force compression.
  For help, type: gzip -h
  </code></pre>
  
  <p>The file <code>test.tar.gz</code> is empty, but my repository is not empty and creating a zip file works fine (contains all my source files)! Why does the tarball format fail to produce an archive?</p>