tar gzip file from git commit id from to commit id repo code example
Example: export zip git project bash
git archive --format zip --output /full/path/to/zipfile.zip master
git archive --format zip --output /full/path/to/zipfile.zip master