git archive --format=tar --prefix=<PATH_PREFIX_IN_ARCHIVE>/ <TREE_ISH> | gzip > <OUTPUT_PATH>/<FILENAME>.tar.gz
Last updated 3 years ago