# zip archive git archive -o output.zip master # tape archive git archive -o output.tar master # tarball git archive -o output.tar.gz master According to the official documentation, the -o option is capable of identifying the target compression format through the extension file name. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.