git-initweb

#!/bin/sh
# initializes a git repository in a directory named using a given prefix
test -z "$1" && echo 'Usage: '"$0"' [PREFIX]' && exit 1
mkdir "$1".git && (
  cd "$1".git && git init --bare && \
  mv hooks/post-update.sample hooks/post-update
)