Skip to content

Instantly share code, notes, and snippets.

@BlackMac
Created August 31, 2010 09:33
Show Gist options
  • Save BlackMac/558787 to your computer and use it in GitHub Desktop.
Save BlackMac/558787 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd /var/cache/git
mkdir "$1.git"
chmod 775 "$1.git"
cd "$1.git"
git init --bare
cd ..
chown -R root:git "$1.git"
echo "# git remote add origin ssh://git.***.com/var/cache/git/$1.git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment