It is considered good practice to use a prefix when creating git archives, so that extraction will place all files inside a directory. To create an archive of HEAD
with a directory prefix:
git archive --output=archive-HEAD.zip --prefix=src-directory-name HEAD
When extracted all the files will be extracted inside a directory named src-directory-name
in the current directory.