Skip to content

Instantly share code, notes, and snippets.

@timabell
timabell / git-tgz.sh
Created May 10, 2011 22:03
create git tarballs easily
#!/bin/sh
if [ -z "$1" ]
then
rev="HEAD"
else
rev=$1
fi
wd=`pwd`
basepath=`basename $wd`
desc=$(git describe --always "$rev")