Tuesday, May 05, 2009

git archive the current directory into a zip file

#/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
view raw git-zip.sh hosted with ❤ by GitHub

Labels:

0 Comments:

Post a Comment

<< Home