git archive --format=zip --prefix=myapp/ HEAD -o myapp.zip
Export the repo as a zip with a prefix
Bundles the current commit's tree into a zip file without any .git history. The --prefix option nests everything under myapp/ so unzipping into a directory does not scatter files. Use it for source drops and releases.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.