Bundle repository files without the .git directory.
Section: Repository Creation and Discovery
Create zip archive with prefix
bash
bash
git archive --format=zip --prefix=repo/ HEAD > repo.zipLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Repository Creation and Discovery