How do I export my project as a .zip of git repository?

Daniel picture Daniel · Apr 4, 2019 · Viewed 11.1k times · Source

I was recently asked to export as a .zip file one of my projects on my Git repository.

I have actually never had to do this in the 4 years I have been using Git.

I would prefer an answer that is all done inside command line terminal.

Answer

EncryptedWatermelon picture EncryptedWatermelon · Apr 4, 2019

git archive --format zip --output /full/path/to/zipfile.zip master