Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

export

zip

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.

like image 986
Daniel Avatar asked Apr 04 '19 12:04

Daniel


People also ask

How do I zip a project in GitHub?

Click on the Code > Download Zip drop-down menu button on any repo, as shown in Figure 10.12. Your browser will download a zipped compressed folder with the contents of the repo to your local computer, and it may ask you where you wish to save it.

How do I Export a git repository project?

Exporting a RepositoryStep 1: Go to your git bash. and then to the repo you want to extract or export. Here, we are going to export this repo named 'Ada August-a Challenge' and it's main branch. Step 2: Now export it to your preferred format and location, here we will export it to the same location in .


1 Answers

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

like image 92
EncryptedWatermelon Avatar answered Sep 18 '22 15:09

EncryptedWatermelon