first make sure you're checkout to master branch
git checkout master
The correct syntax for zipping the master branch in Git using the git archive command with the output filename specified is:
git archive --format=zip --output=[filename].zip HEAD
This command creates a new zip file named master.zip containing the contents of the master branch.
You can also use the shorthand version of the git archive command as follows:
git archive -o [filename].zip HEAD
Both of these commands accomplish the same thing, but the first command explicitly sets the archive format to zip using the --format option, while the second command relies on the default archive format, which is also zip.