#!/bin/bash if [ $1 == "" ]; then echo usage: mkgit-server [repository name] fi mkdir /home/git/$1.git cd /home/git/$1.git git init --bare chown -R git * cd .. chown -R git $1.git