It is also possible to create archives of other items than HEAD, such as branches, commits, tags, and directories.
To create an archive of a local branch dev:
git archive --output=archive-dev.zip --prefix=src-directory-name dev
To create an archive of a remote branch origin/dev:
git archive --...