Exporting a git repo as a tarball

git archive --format=tar.gz  -o ~/neptune3-ui-5.15.tar.gz 5.15    --prefix=neptune3-ui-5.15/

These are the options I needed. the -o says where to put the file, and the –prefix (with the / at the end) puts it in a subdir.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.