Export your git branch to a zip folder
If you need the branch history, just use the regular zip command and zip your .git directory
On Ubuntu, you can go to your project directory, then do the following
git archive --format zip --output "output.zip" master
To use the zip file, copy it to another directory, and do the following
zip -r my_roject.zip .git
unzip my_project.zip -d my_project_copy
cd my_project_copy
git reset --hard HEAD