Skip to content

Instantly share code, notes, and snippets.

@boscomonkey
Created May 5, 2009 23:27
Show Gist options
  • Save boscomonkey/107280 to your computer and use it in GitHub Desktop.
Save boscomonkey/107280 to your computer and use it in GitHub Desktop.
#/bin/sh
# git-zip.sh
#
# Creates a zip file of the HEAD of the current git repository
CWD=`basename $PWD`
git archive --format=zip --prefix=${CWD}/ -9 HEAD > ../${CWD}.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment